Skip to content

Commit 4364f51

Browse files
committed
cbe: finish partial zig_noreturn rewrite
1 parent 48a2783 commit 4364f51

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/include/zig.h

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,16 +176,12 @@
176176

177177
#if __STDC_VERSION__ >= 201112L
178178
#define zig_noreturn _Noreturn void
179-
#define zig_threadlocal thread_local
180-
#elif __GNUC__
181-
#define zig_noreturn __attribute__ ((noreturn)) void
182-
#define zig_threadlocal __thread
179+
#elif zig_has_attribute(noreturn)
180+
#define zig_noreturn __attribute__((noreturn)) void
183181
#elif _MSC_VER
184182
#define zig_noreturn __declspec(noreturn) void
185-
#define zig_threadlocal __declspec(thread)
186183
#else
187184
#define zig_noreturn void
188-
#define zig_threadlocal zig_threadlocal_unavailable
189185
#endif
190186

191187
#define zig_bitSizeOf(T) (CHAR_BIT * sizeof(T))

0 commit comments

Comments
 (0)