2020-11-19 01:50:51 +00:00
|
|
|
#if __STDC_VERSION__ >= 199901L
|
|
|
|
// C99 or newer
|
|
|
|
#include <stdbool.h>
|
|
|
|
#else
|
|
|
|
#define bool unsigned char
|
|
|
|
#define true 1
|
|
|
|
#define false 0
|
|
|
|
#endif
|
|
|
|
|
2020-07-08 03:57:34 +01:00
|
|
|
#if __STDC_VERSION__ >= 201112L
|
2020-08-09 22:21:40 +01:00
|
|
|
#define zig_noreturn _Noreturn
|
2020-08-09 20:41:43 +01:00
|
|
|
#elif __GNUC__
|
2020-08-09 22:21:40 +01:00
|
|
|
#define zig_noreturn __attribute__ ((noreturn))
|
2020-08-09 20:41:43 +01:00
|
|
|
#elif _MSC_VER
|
2020-08-09 22:21:40 +01:00
|
|
|
#define zig_noreturn __declspec(noreturn)
|
2020-07-08 03:57:34 +01:00
|
|
|
#else
|
2020-08-09 22:21:40 +01:00
|
|
|
#define zig_noreturn
|
2020-07-08 03:57:34 +01:00
|
|
|
#endif
|
|
|
|
|
2020-08-09 23:52:32 +01:00
|
|
|
#if __GNUC__
|
|
|
|
#define zig_unreachable() __builtin_unreachable()
|
|
|
|
#else
|
|
|
|
#define zig_unreachable()
|
|
|
|
#endif
|