panic/core

sourcepanic/core.sx

panic_signal

when freestanding, when posixprivate
extern (C) fn panic_signal(sig: i32, handler: usize) usize = trust { ... } = "sx_signal"

panic_raise

when freestanding, when posixprivate
extern (C) fn panic_raise(sig: i32) i32 = trust { ... } = "sx_raise"

panic_raw_write

when freestanding, when posixprivate
extern (C) fn panic_raw_write(fd: i32, buf: ref void, n: usize) i64 = trust { ... } = "__sx_sys_write"

panic_frame_pointer

when freestanding, when posixprivate
extern (C) fn panic_frame_pointer() ref void = trust { ... } = "sx_frame_pointer"

panic_emit_bytes

when freestanding, when posixprivate
fn panic_emit_bytes(p: ref u8, n: i64) void = trust { ... }

panic_capture

when freestanding, when posixprivate
fn panic_capture(frames: ref void, capacity: i32) i32 = trust { ... }

sx_panic_report

when freestanding, when posix
pub fn sx_panic_report(sig: i32, frames: ref void, count: i32) void = trust { ... }

panic_on_signal

when freestanding, when posixprivate
fn panic_on_signal(sig: i32) void = trust { ... }

sx_panic_init

when freestanding, when posix
pub fn sx_panic_init() void = trust { ... }

panic_emit_bytes

when freestanding, otherwiseprivate
fn panic_emit_bytes(_: ref u8, _: i64) void

sx_panic_report

when freestanding, otherwise
pub fn sx_panic_report(_: i32, _: ref void, _: i32) void

sx_panic_init

when freestanding, otherwise
pub fn sx_panic_init() void

panic_backtrace

when hosted, when posixprivate
extern (C, header) fn panic_backtrace(frames: ref void, size: i32) i32 = trust { ... } = "backtrace"

panic_backtrace_symbols

when hosted, when posixprivate
extern (C, header) fn panic_backtrace_symbols(frames: ref void, size: i32) ref void = trust { ... } = "backtrace_symbols"

panic_backtrace_symbols_fd

when hosted, when posixprivate
extern (C, header) fn panic_backtrace_symbols_fd(frames: ref void, size: i32, fd: i32) void = trust { ... } = "backtrace_symbols_fd"

panic_write

when hosted, when posixprivate
extern (C, header) fn panic_write(fd: i32, bytes: ref u8, count: usize) i64 = trust { ... } = "write"

panic_free

when hosted, when posixprivate
extern (C, header) fn panic_free(ptr: ref void) void = trust { ... } = "free"

panic_signal

when hosted, when posixprivate
extern (C, header) fn panic_signal(sig: i32, handler: usize) usize = trust { ... } = "signal"

panic_raise

when hosted, when posixprivate
extern (C, header) fn panic_raise(sig: i32) i32 = trust { ... } = "raise"

panic_popen

when hosted, when posixprivate
extern (C, header) fn panic_popen(cmd: ref u8, mode: ref u8) ref void = trust { ... } = "popen"

panic_pclose

when hosted, when posixprivate
extern (C, header) fn panic_pclose(pipe: ref void) i32 = trust { ... } = "pclose"

panic_fgets

when hosted, when posixprivate
extern (C, header) fn panic_fgets(buf: ref u8, size: i32, stream: ref void) ref u8 = trust { ... } = "fgets"

panic_emit_bytes

when hosted, when posixprivate
fn panic_emit_bytes(p: ref u8, n: i64) void = trust { ... }

panic_print_frame

when hosted, when posixprivate
fn panic_print_frame(index: i32, sym: ref u8) i32 = trust { ... }

sx_panic_report

when hosted, when posix
pub fn sx_panic_report(sig: i32, frames: ref void, count: i32) void = trust { ... }

panic_on_signal

when hosted, when posixprivate
fn panic_on_signal(sig: i32) void = trust { ... }

sx_panic_init

when hosted, when posix
pub fn sx_panic_init() void = trust { ... }

panic_get_current_process

when hosted, when windowsprivate
extern (C, header) fn panic_get_current_process() ref void = trust { ... } = "GetCurrentProcess"

panic_sym_initialize

when hosted, when windowsprivate
extern (C, header) fn panic_sym_initialize(process: ref void, search: ref u8, invade: i32) i32 = trust { ... } = "SymInitialize"

panic_sym_from_addr

when hosted, when windowsprivate
extern (C, header) fn panic_sym_from_addr(process: ref void, address: u64, displacement: ref void, symbol: ref void) i32 = trust { ... } = "SymFromAddr"

panic_capture_stack

when hosted, when windowsprivate
extern (C, header) fn panic_capture_stack(first: u32, count: u32, frames: ref void, hash: ref void) u16 = trust { ... } = "RtlCaptureStackBackTrace"

panic_set_filter

when hosted, when windowsprivate
extern (C, header) fn panic_set_filter(filter: usize) ref void = trust { ... } = "SetUnhandledExceptionFilter"

panic_std_handle

when hosted, when windowsprivate
extern (C, header) fn panic_std_handle(kind: i32) ref void = trust { ... } = "GetStdHandle"

panic_write_file

when hosted, when windowsprivate
extern (C, header) fn panic_write_file(handle: ref void, bytes: ref void, count: u32, written: ref u32, overlapped: ref void) i32 = trust { ... } = "WriteFile"

panic_emit_bytes

when hosted, when windowsprivate
fn panic_emit_bytes(p: ref u8, n: i64) void = trust { ... }

panic_exception_name

when hosted, when windowsprivate
fn panic_exception_name(code: i32) ref u8 = trust { ... }

sx_panic_report

when hosted, when windows
pub fn sx_panic_report(code: i32, frames: ref void, count: i32) void = trust { ... }

panic_on_exception

when hosted, when windowsprivate
fn panic_on_exception(info: ref void) i32 = trust { ... }

sx_panic_init

when hosted, when windows
pub fn sx_panic_init() void = trust { ... }

panic_emit_bytes

when hosted, otherwiseprivate
fn panic_emit_bytes(_: ref u8, _: i64) void

sx_panic_report

when hosted, otherwise
pub fn sx_panic_report(_: i32, _: ref void, _: i32) void

sx_panic_init

when hosted, otherwise
pub fn sx_panic_init() void

panic_strlen

private
fn panic_strlen(s: ref u8) i64 = trust { ... }

panic_emit_text

private
fn panic_emit_text(s: ref u8) void = trust { ... }

panic_emit_fill

private
fn panic_emit_fill(ch: u8, count: i64) void = trust { ... }

panic_emit_number

private
fn panic_emit_number(value: u64, width: i64, base: u64, upper: bool, left: bool, pad: u8) void = trust { ... }

panic_find_byte

private
fn panic_find_byte(s: ref u8, from: i64, want: u8) i64 = trust { ... }

panic_find_text

private
fn panic_find_text(hay: ref u8, needle: ref u8) i64 = trust { ... }

panic_contains

private
fn panic_contains(hay: ref u8, needle: ref u8) bool = trust { ... }

panic_copy_into

private
fn panic_copy_into(dst: ref u8, pos: i64, src: ref u8, from: i64, to: i64) i64 = trust { ... }

panic_append_into

private
fn panic_append_into(dst: ref u8, pos: i64, src: ref u8) i64 = trust { ... }

panic_format_func

private
fn panic_format_func(src: ref u8, dst: ref u8, cap: i64) i64 = trust { ... }

panic_bus_number

private
fn panic_bus_number() i32 = trust { ... }

panic_signal_name

private
fn panic_signal_name(sig: i32) ref u8 = trust { ... }