| author | |
| committer | |
| log | 23d9b59b868e7f256668535adf9803facf75e538 |
| tree | b2f1de77236c0c2fccd9b7711d5726ade27ce6af |
| parent | f991b9dc05706613839743f970a32d516085f182 |
debug: make getContext public2 files changed, 3 insertions(+), 1 deletions(-)
lib/std/c.zig+2| ... | ... | @@ -413,6 +413,8 @@ pub extern "c" fn timer_delete(timerid: c.timer_t) c_int; |
| 413 | 413 | pub extern "c" fn timer_settime(timerid: c.timer_t, flags: c_int, new_value: *const c.itimerspec, old_value: *c.itimerspec) c_int; |
| 414 | 414 | pub extern "c" fn timer_gettime(timerid: c.timer_t, flags: c_int, curr_value: *c.itimerspec) c_int; |
| 415 | 415 | |
| 416 | pub extern "c" fn getcontext(ucp: *std.os.ucontext_t) c_int; | |
| 417 | ||
| 416 | 418 | pub const max_align_t = if (builtin.abi == .msvc) |
| 417 | 419 | f64 |
| 418 | 420 | else if (builtin.target.isDarwin()) |
lib/std/debug.zig+1-1| ... | ... | @@ -420,7 +420,7 @@ pub fn writeStackTrace( |
| 420 | 420 | } |
| 421 | 421 | } |
| 422 | 422 | |
| 423 | inline fn getContext(context: *StackTraceContext) bool { | |
| 423 | pub inline fn getContext(context: *StackTraceContext) bool { | |
| 424 | 424 | if (native_os == .windows) { |
| 425 | 425 | context.* = std.mem.zeroes(windows.CONTEXT); |
| 426 | 426 | windows.ntdll.RtlCaptureContext(context); |