mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
Fix std.c.EXC.MASK struct to match definition in mach/exception_types.h (#21964)
Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>
This commit is contained in:
parent
c59aee03c8
commit
9996f8b9b1
1 changed files with 2 additions and 0 deletions
|
|
@ -59,6 +59,7 @@ pub const EXC = enum(exception_type_t) {
|
|||
pub const SOFT_SIGNAL = 0x10003;
|
||||
|
||||
pub const MASK = packed struct(u32) {
|
||||
_0: u1 = 0,
|
||||
BAD_ACCESS: bool = false,
|
||||
BAD_INSTRUCTION: bool = false,
|
||||
ARITHMETIC: bool = false,
|
||||
|
|
@ -72,6 +73,7 @@ pub const EXC = enum(exception_type_t) {
|
|||
RESOURCE: bool = false,
|
||||
GUARD: bool = false,
|
||||
CORPSE_NOTIFY: bool = false,
|
||||
_14: u18 = 0,
|
||||
|
||||
pub const MACHINE: MASK = @bitCast(@as(u32, 0));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue