From 91241b44daebcf120aa9ffb858bb855e485ae410 Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 19 Jan 2015 23:28:09 -0800 Subject: [PATCH] rgbasm: bump MAXMACROARGS up to 256 from 9 --- include/asm/asm.h | 2 +- src/asm/symbol.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/asm/asm.h b/include/asm/asm.h index 8f743803..dbbe0bc3 100644 --- a/include/asm/asm.h +++ b/include/asm/asm.h @@ -29,7 +29,7 @@ extern struct sSymbol *tHashedSymbols[HASHSIZE]; extern struct sSymbol *pPCSymbol; extern bool oDontExpandStrings; -#define MAXMACROARGS 9 +#define MAXMACROARGS 256 #define MAXINCPATHS 16 #endif /* // ASM_H */ diff --git a/src/asm/symbol.c b/src/asm/symbol.c index af296882..a99703be 100644 --- a/src/asm/symbol.c +++ b/src/asm/symbol.c @@ -436,7 +436,7 @@ sym_AddNewMacroArg(char *s) else newmacroargs[i] = NULL; } else - yyerror("A maximum of 9 arguments allowed"); + yyerror("A maximum of %d arguments allowed", MAXMACROARGS); } void