mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
cbe: finish partial zig_noreturn rewrite
This commit is contained in:
parent
48a2783969
commit
4364f51476
8
lib/include/zig.h
vendored
8
lib/include/zig.h
vendored
@ -176,16 +176,12 @@
|
||||
|
||||
#if __STDC_VERSION__ >= 201112L
|
||||
#define zig_noreturn _Noreturn void
|
||||
#define zig_threadlocal thread_local
|
||||
#elif __GNUC__
|
||||
#define zig_noreturn __attribute__ ((noreturn)) void
|
||||
#define zig_threadlocal __thread
|
||||
#elif zig_has_attribute(noreturn)
|
||||
#define zig_noreturn __attribute__((noreturn)) void
|
||||
#elif _MSC_VER
|
||||
#define zig_noreturn __declspec(noreturn) void
|
||||
#define zig_threadlocal __declspec(thread)
|
||||
#else
|
||||
#define zig_noreturn void
|
||||
#define zig_threadlocal zig_threadlocal_unavailable
|
||||
#endif
|
||||
|
||||
#define zig_bitSizeOf(T) (CHAR_BIT * sizeof(T))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user