From d6856859d3082d9b66aac7c25ceb2abcd13e2f7c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 23 Mar 2017 02:59:58 -0400 Subject: improvements for windows and libc integration * standard library knows if it is linking against libc and will sometimes call libc functions in that case instead of providing redundant definitions * fix infinite loop bug when resolving use declarations * allow calling the same C function from different C imports. closes #277 * push more logic from compiler to std/bootstrap.zig * standard library provides way to access errno closes #274 * fix compile error in standard library for windows * add implementation of getRandomBytes for windows --- std/debug.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/debug.zig') diff --git a/std/debug.zig b/std/debug.zig index d03f22b4c9..7fe1ef4d4b 100644 --- a/std/debug.zig +++ b/std/debug.zig @@ -78,13 +78,13 @@ pub fn writeStackTrace(out_stream: &io.OutStream) -> %void { } }, ObjectFormat.coff => { - out_stream.write("(stack trace unavailable for COFF object format)\n"); + %return out_stream.write("(stack trace unavailable for COFF object format)\n"); }, ObjectFormat.macho => { %return out_stream.write("(stack trace unavailable for Mach-O object format)\n"); }, ObjectFormat.unknown => { - out_stream.write("(stack trace unavailable for unknown object format)\n"); + %return out_stream.write("(stack trace unavailable for unknown object format)\n"); }, } } -- cgit v1.2.3