mirror of
https://github.com/ziglang/zig.git
synced 2025-12-15 18:53:07 +00:00
CBE: improve noreturn definition, support noreturn on MSVC
This commit is contained in:
parent
de4f3f11f7
commit
b59e2c1e00
@ -1,7 +1,9 @@
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
#define noreturn _Noreturn
|
||||
#elif __GNUC__ && !__STRICT_ANSI__
|
||||
#elif __GNUC__
|
||||
#define noreturn __attribute__ ((noreturn))
|
||||
#elif _MSC_VER
|
||||
#define noreturn __declspec(noreturn)
|
||||
#else
|
||||
#define noreturn
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user