From c998a37b330fdb4296007dffc579fe4909583ef7 Mon Sep 17 00:00:00 2001 From: Kai Gunger Date: Tue, 30 Dec 2025 23:39:32 -0500 Subject: move comperr message to else block --- tnslc/compile/function.tnsl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tnslc') 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 -- cgit v1.2.3