[qfcc] Fix handling of a single id in ... macros

If the id isn't a parameter or other macro, then it can't be empty and
thus the va_args aren't empty.
This commit is contained in:
Bill Currie 2024-12-06 22:38:58 +09:00
parent bc1b9893a7
commit 4e3bacd827

View file

@ -2356,6 +2356,7 @@ macro_empty (rua_macro_t *macro, yyscan_t scanner)
if (!empty) {
return false;
}
continue;
}
if ((sym = symtab_lookup (extra->macro_tab, t->text))
&& !sym->macro->next) {
@ -2373,7 +2374,9 @@ macro_empty (rua_macro_t *macro, yyscan_t scanner)
if (!empty) {
return false;
}
continue;
}
return false;
}
return true;
}