zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 4364f5147697f3c6a9147efd74eec82586cf568c (tree)
parent 48a2783969b0a43200514a5b4e9cce57be4e5b46
Author: Jacob Young <jacobly0@users.noreply.github.com>
Date:   Sat, 29 Oct 2022 16:53:47 -0400

cbe: finish partial zig_noreturn rewrite

Diffstat:
Mlib/include/zig.h | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lib/include/zig.h b/lib/include/zig.h @@ -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))