mirror of
https://github.com/ziglang/zig.git
synced 2024-11-14 16:13:24 +00:00
zig.h: fix typo for zig_trap definition
This commit is contained in:
parent
2e2d37917d
commit
aa45854ec3
@ -197,7 +197,7 @@ typedef char bool;
|
||||
#elif defined(__i386__) || defined(__x86_64__)
|
||||
#define zig_trap() __asm__ volatile("ud2");
|
||||
#elif defined(__arm__) || defined(__aarch64__)
|
||||
#define zig_breakpoint() __asm__ volatile("udf #0");
|
||||
#define zig_trap() __asm__ volatile("udf #0");
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#define zig_trap() abort()
|
||||
|
@ -197,7 +197,7 @@ typedef char bool;
|
||||
#elif defined(__i386__) || defined(__x86_64__)
|
||||
#define zig_trap() __asm__ volatile("ud2");
|
||||
#elif defined(__arm__) || defined(__aarch64__)
|
||||
#define zig_breakpoint() __asm__ volatile("udf #0");
|
||||
#define zig_trap() __asm__ volatile("udf #0");
|
||||
#else
|
||||
#include <stdlib.h>
|
||||
#define zig_trap() abort()
|
||||
|
Loading…
Reference in New Issue
Block a user