compilers.h (424B)
1 #if defined(__GNUC__) 2 3 #define UNUSED __attribute__((unused)) 4 #define SIZE(x) static (x) 5 #define NON_NULL SIZE(1) 6 7 #elif defined(__clang__) 8 9 #define UNUSED __attribute__((unused)) 10 #define SIZE(x) static (x) 11 #define NON_NULL SIZE(1) 12 13 #else 14 15 /* 16 For example MSVC, which is not fully C11 compliant (e.g. it does not support 17 a[static N] notation for array parameters). 18 */ 19 20 #define UNUSED 21 #define SIZE(x) 22 #define NON_NULL 23 24 #endif