Modules

Runtime_Support_Crash_Handler

moduleSource

Available on macOS, Linux

#import "Runtime_Support_Crash_Handler";

Procedures#

Windows crash handler#

attach_thread2 overloadssince 0.31.0Source
()
()

Reserves stack for the handler on the calling thread. Does nothing until init has run.

Crash handler#

Types#

:: struct

Reuse the SDK-shaped Windows binding so register layouts have one owner.

members: Win.CONTEXT
:: struct
ExceptionCode: u32
ExceptionFlags: u32
ExceptionRecord: *EXCEPTION_RECORD
ExceptionAddress: *void
NumberParameters: u32
ExceptionInformation: [15] u64
stack_tstructmacOS onlySource
:: struct
ss_sp: *void
ss_size: u64
ss_flags: s32
:: struct
si_signo: s32
si_errno: s32
si_code: s32
si_pid: s32
si_uid: u32
si_status: s32
si_addr: *void

Constants#