From 4e3bacd827fa873867c2c3019557d111e789b38e Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 6 Dec 2024 22:38:58 +0900 Subject: [PATCH] [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. --- tools/qfcc/source/qc-lex.l | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/qfcc/source/qc-lex.l b/tools/qfcc/source/qc-lex.l index 3db506648..fe2941e95 100644 --- a/tools/qfcc/source/qc-lex.l +++ b/tools/qfcc/source/qc-lex.l @@ -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; }