commit b4049a8f6016661e0264a4f1015e678e95a5d5b5
parent 0f419c13985656c443c871208afefa355af32e86
Author: Brian Swetland <swetland@frotz.net>
Date: Sat, 14 Oct 2023 13:42:45 -0700
compiler: exit on error
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/compiler.spl b/compiler.spl
@@ -2,12 +2,14 @@
// Licensed under the Apache License, Version 2.0.
fn error_begin() i32 {
+ writes(2, "\n");
writes(2, "error: ");
return 2;
}
fn error_end() {
writes(2, "\n");
+ os_exit(1);
}
struct String {