mirror of
https://github.com/ziglang/zig.git
synced 2025-12-17 19:53:06 +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
|
#if __STDC_VERSION__ >= 201112L
|
||||||
#define noreturn _Noreturn
|
#define noreturn _Noreturn
|
||||||
#elif __GNUC__ && !__STRICT_ANSI__
|
#elif __GNUC__
|
||||||
#define noreturn __attribute__ ((noreturn))
|
#define noreturn __attribute__ ((noreturn))
|
||||||
|
#elif _MSC_VER
|
||||||
|
#define noreturn __declspec(noreturn)
|
||||||
#else
|
#else
|
||||||
#define noreturn
|
#define noreturn
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user