11"GNU C is required to compile this project. Please use a compatible compiler "
12 "such as gcc or clang."
21#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
25 "POSIX library functions are required to compile this project."
30 #define __join_eval(x, y) x##y
31 #define __join(x, y) __join_eval(x, y)
34 #define W_NO_EMPTY_TRANSLATION_UNIT() \
35 __join(struct dummy_struct, __COUNTER__)
37 #undef W_NO_EMPTY_TRANSLATION_UNIT
40#define STR const char*
53#define auto_t __auto_type
55#define lengthof(array) (sizeof(array) / sizeof(*(array)))
56#define _A(attr) __attribute__((attr))
70 #undef PS_PRINT_TEMPLATE
73 #define _STRING_EVAL(x) #x
74 #define _STRING(x) _STRING_EVAL(x)
75 #define BOOLSTR(x) ((x) ? "true" : "false")
80 #define ps_exit(code) ps_abort_with_code("Exiting program.", code)
Defines assertion and abortion functionality.
#define W_NO_EMPTY_TRANSLATION_UNIT()