(uxnasm) Report error when walking comment

This commit is contained in:
Devine Lu Linvega 2024-03-27 09:48:09 -07:00
parent 4c7ec082f5
commit fe4103cadb
1 changed files with 1 additions and 1 deletions

View File

@ -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);