1
0
forked from 131/lab6_list

init commit

This commit is contained in:
dzruyk
2022-04-23 01:35:06 +03:00
commit 6d1c299a16
18 changed files with 4294 additions and 0 deletions

14
macro.h Normal file
View File

@@ -0,0 +1,14 @@
#pragma once
#define ARRSZ(arr) (sizeof(arr) / sizeof(*arr))
#define SWAP(a, b, type) do { \
type tmp; \
tmp = a; \
a = b; \
b = tmp; \
} while(0)
#define ARR_FOREACH(arr, item) \
for (item = arr; item != arr + ARRSZ(arr) * sizeof(*item); item++)