Loading...
Searching...
No Matches
Go to the documentation of this file.
13#define ctb_arr(itemType, length) \
14 ((itemType[length]){ 0 })
21#define ctb_obj(type) \
29#define ctb_lengthOf(arr) \
30 (sizeof(arr) / sizeof(arr[0]))
39#define ctb_containerOf(obj, type, member) \
40 ((type *)((char *)(obj) - offsetof(type, member)))
48#define ctb_staticAssert(expression, identifier) \
49 typedef char identifier[(!!(expression)) * 2 - 1]