summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Gunger <kgunger12@gmail.com>2025-12-30 23:39:32 -0500
committerKai Gunger <kgunger12@gmail.com>2025-12-30 23:39:32 -0500
commitc998a37b330fdb4296007dffc579fe4909583ef7 (patch)
tree2a80fda3fea8058a5bd7b4b2076205b18fde62c2
parentaef2a1e4fae812220b29ec939be239cee5225b1a (diff)
move comperr message to else block
-rw-r--r--tnslc/compile/function.tnsl12
1 files changed, 6 insertions, 6 deletions
diff --git a/tnslc/compile/function.tnsl b/tnslc/compile/function.tnsl
index 1f0fb3f..8b5b480 100644
--- a/tnslc/compile/function.tnsl
+++ b/tnslc/compile/function.tnsl
@@ -260,13 +260,13 @@ struct Function {
s`.cb`.add_c(" jmp \0")
s`.cb`.add_c(lab)
s`.cb`.add_c("\n\0")
+ ;; else
+ _printf("COMPILER ERROR: The following was detected as flow control, but we do not handle it: '\0")
+ _printf(n`.data)
+ _printf("'\n\0")
+ _printf("COMPILER ERROR: this is likely a bug with the compiler, please report it along with the\n\0")
+ _printf("COMPILER ERROR: code snippit which caused the bug!\n\0")
;/
-
- _printf("COMPILER ERROR: The following was detected as flow control, but we do not handle it: '\0")
- _printf(n`.data)
- _printf("'\n\0")
- _printf("COMPILER ERROR: this is likely a bug with the compiler, please report it along with the\n\0")
- _printf("COMPILER ERROR: code snippit which caused the bug!\n\0")
;/
# Should handle computing a value, delegate to other funcs when needed