zig.h: fix typo for zig_trap definition

This commit is contained in:
Andrew Kelley 2023-04-08 09:54:32 -07:00
parent 2e2d37917d
commit aa45854ec3
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()