Merge branch 'fix-uniquearg-segfault' of https://github.com/chastai/rgbds

This commit is contained in:
Anthony J. Bentley committed 2014-10-06 01:55:19 -06:00
commit 27a350eaab
1 file changed
+7 -1
+7 -1
View File
@@ -223,9 +223,15 @@ PutMacroArg(char *src, ULONG size)
ULONG
PutUniqueArg(char *src, ULONG size)
{
char *s;
src = src;
yyskipbytes(size);
yyunputstr(sym_FindMacroArg(-1));
if ((s = sym_FindMacroArg(-1)) != NULL) {
yyunputstr(s);
} else {
yyerror("Macro unique label string not defined");
}
return (0);
}