We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a2783 commit 4364f51Copy full SHA for 4364f51
lib/include/zig.h
@@ -176,16 +176,12 @@
176
177
#if __STDC_VERSION__ >= 201112L
178
#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
+#elif zig_has_attribute(noreturn)
+#define zig_noreturn __attribute__((noreturn)) void
183
#elif _MSC_VER
184
#define zig_noreturn __declspec(noreturn) void
185
-#define zig_threadlocal __declspec(thread)
186
#else
187
#define zig_noreturn void
188
-#define zig_threadlocal zig_threadlocal_unavailable
189
#endif
190
191
#define zig_bitSizeOf(T) (CHAR_BIT * sizeof(T))
0 commit comments