aboutsummaryrefslogtreecommitdiff
path: root/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-12-21 23:34:14 -0500
committerAndrew Kelley <superjoe30@gmail.com>2016-12-21 23:34:14 -0500
commitb55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0 (patch)
tree2786bbab71399b3ed6d581e721cfdc7aee9653a8 /std/debug.zig
parent43be6ccb03e6ce32f78c69129b61d49cae2b747d (diff)
downloadzig-b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0.tar.gz
zig-b55efe5fabc5e743406d62bf5b1c2ebfcc8fc5b0.zip
update more std library to new zig
Diffstat (limited to 'std/debug.zig')
-rw-r--r--std/debug.zig14
1 files changed, 7 insertions, 7 deletions
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");
},
}