summaryrefslogtreecommitdiff
path: root/05/util.b
diff options
context:
space:
mode:
Diffstat (limited to '05/util.b')
-rw-r--r--05/util.b7
1 files changed, 6 insertions, 1 deletions
diff --git a/05/util.b b/05/util.b
index bdafeb1..3b6eb18 100644
--- a/05/util.b
+++ b/05/util.b
@@ -128,12 +128,17 @@ function file_error
fputs(2, name)
fputc(2, 10)
exit(1)
-
+
:str_file_error
string Error opening file:
byte 32
byte 0
+function die
+ argument message
+ fputs(2, message)
+ exit(1)
+
function malloc
argument size
local total_size