diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-05-01 19:16:48 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-05-01 19:16:48 -0400 |
| commit | cff5358f60bac70728c9b738c8311e055e96d04a (patch) | |
| tree | 1e89a67d08c3c0b3afa318b758d9b4512771ceb6 /std/debug.zig | |
| parent | 3cbd0065fa4b0f659dfb1733b25bd09e37442d09 (diff) | |
| download | zig-cff5358f60bac70728c9b738c8311e055e96d04a.tar.gz zig-cff5358f60bac70728c9b738c8311e055e96d04a.zip | |
make debug safety stuff lazy
Diffstat (limited to 'std/debug.zig')
| -rw-r--r-- | std/debug.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/debug.zig b/std/debug.zig index af9bfe314c..47f38748d7 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -92,7 +92,8 @@ pub fn writeStackTrace(out_stream: &io.OutStream, allocator: &mem.Allocator, tty const ptr_hex = if (@sizeOf(usize) == 4) "0x{x8}" else "0x{x16}"; const compile_unit = findCompileUnit(st, return_address) ?? { - %return out_stream.print(DIM ++ ptr_hex ++ " in ??? (???)" ++ RESET ++ "\n\n\n", return_address); + %return out_stream.print("???:?:?: " ++ DIM ++ ptr_hex ++ " in ??? (???)" ++ RESET ++ "\n ???\n\n", + return_address); %return out_stream.flush(); continue; }; |
