mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[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:
parent
bc1b9893a7
commit
4e3bacd827
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue