From fe4103cadb2c222d33dd28064468179061a3cc6e Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 27 Mar 2024 09:48:09 -0700 Subject: [PATCH] (uxnasm) Report error when walking comment --- src/uxnasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uxnasm.c b/src/uxnasm.c index 172dfe0..b529a89 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -153,7 +153,7 @@ makemacro(char *name, FILE *f) if(word[0] == '%') return error_asm("Macro error"); if(m->len >= 0x40) return error_asm("Macro size exceeded"); if(word[0] == '(') { - walkcomment(word, f); + if(!walkcomment(word, f)) return error_asm("Comment error"); continue; } scpy(word, m->items[m->len++], 0x40);