0
0
Fork 0
mirror of https://git.sr.ht/~rabbits/uxn synced 2025-01-03 14:11:11 +00:00

(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

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