parent
7fe58b82f5
commit
fc4e65b479
@ -0,0 +1,8 @@
|
|||||||
|
const std = @import("std");
|
||||||
|
|
||||||
|
/// installs a segfault handler on supported platforms in debug and safe modes.
|
||||||
|
/// while a zig main does this automatically, a C main will want to call this explicitly.
|
||||||
|
/// hence, the export for C call convention.
|
||||||
|
export fn setupSegfaultHandler() void {
|
||||||
|
std.debug.maybeEnableSegfaultHandler();
|
||||||
|
}
|
Loading…
Reference in New Issue