diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-01-22 22:24:07 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-01-22 22:24:07 -0500 |
| commit | cf39819478e237255109d0343e642db70e88071b (patch) | |
| tree | 6c8232d28a484989f43075efeaa5501d5e60154b /std/special/panic.zig | |
| parent | cacba6f4357fdec8db0ea792889c60022c39fbd3 (diff) | |
| download | zig-cf39819478e237255109d0343e642db70e88071b.tar.gz zig-cf39819478e237255109d0343e642db70e88071b.zip | |
add new kind of test: generating .h files. and more
* docgen supports obj_err code kind for demonstrating
errors without explicit test cases
* add documentation for `extern enum`. See #367
* remove coldcc keyword and add @setIsCold. See #661
* add compile errors for non-extern struct, enum, unions
in function signatures
* add .h file generation for extern struct, enum, unions
Diffstat (limited to 'std/special/panic.zig')
| -rw-r--r-- | std/special/panic.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/std/special/panic.zig b/std/special/panic.zig index 1b22658c7f..7aaaa78d0a 100644 --- a/std/special/panic.zig +++ b/std/special/panic.zig @@ -6,7 +6,8 @@ const builtin = @import("builtin"); const std = @import("std"); -pub coldcc fn panic(msg: []const u8, error_return_trace: ?&builtin.StackTrace) -> noreturn { +pub fn panic(msg: []const u8, error_return_trace: ?&builtin.StackTrace) -> noreturn { + @setCold(true); switch (builtin.os) { // TODO: fix panic in zen. builtin.Os.freestanding, builtin.Os.zen => { |
