diff options
| author | Kai Gunger <kgunger12@gmail.com> | 2025-12-30 23:39:32 -0500 |
|---|---|---|
| committer | Kai Gunger <kgunger12@gmail.com> | 2025-12-30 23:39:32 -0500 |
| commit | c998a37b330fdb4296007dffc579fe4909583ef7 (patch) | |
| tree | 2a80fda3fea8058a5bd7b4b2076205b18fde62c2 /tnslc/compile | |
| parent | aef2a1e4fae812220b29ec939be239cee5225b1a (diff) | |
move comperr message to else block
Diffstat (limited to 'tnslc/compile')
| -rw-r--r-- | tnslc/compile/function.tnsl | 12 |
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 |