From b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 21 Dec 2016 23:34:14 -0500 Subject: update more std library to new zig --- std/debug.zig | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'std/debug.zig') diff --git a/std/debug.zig b/std/debug.zig index 2f78a6c7ce..05e895db5d 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -5,9 +5,9 @@ const elf = @import("elf.zig"); const DW = @import("dwarf.zig"); const List = @import("list.zig").List; -pub error MissingDebugInfo; -pub error InvalidDebugInfo; -pub error UnsupportedDebugInfo; +error MissingDebugInfo; +error InvalidDebugInfo; +error UnsupportedDebugInfo; pub fn assert(b: bool) { if (!b) @unreachable() @@ -20,7 +20,7 @@ pub fn printStackTrace() -> %void { pub fn writeStackTrace(out_stream: &io.OutStream) -> %void { switch (@compileVar("object_format")) { - elf => { + ObjectFormat.elf => { var stack_trace = ElfStackTrace { .self_exe_stream = undefined, .elf = undefined, @@ -57,13 +57,13 @@ pub fn writeStackTrace(out_stream: &io.OutStream) -> %void { maybe_fp = *(&const ?&const u8)(fp); } }, - coff => { + ObjectFormat.coff => { out_stream.write("(stack trace unavailable for COFF object format)\n"); }, - macho => { + ObjectFormat.macho => { %return out_stream.write("(stack trace unavailable for Mach-O object format)\n"); }, - unknown => { + ObjectFormat.unknown => { out_stream.write("(stack trace unavailable for unknown object format)\n"); }, } -- cgit v1.2.3