mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Merge branch 'fix-uniquearg-segfault' of https://github.com/chastai/rgbds
This commit is contained in:
@@ -223,9 +223,15 @@ PutMacroArg(char *src, ULONG size)
|
|||||||
ULONG
|
ULONG
|
||||||
PutUniqueArg(char *src, ULONG size)
|
PutUniqueArg(char *src, ULONG size)
|
||||||
{
|
{
|
||||||
|
char *s;
|
||||||
|
|
||||||
src = src;
|
src = src;
|
||||||
yyskipbytes(size);
|
yyskipbytes(size);
|
||||||
yyunputstr(sym_FindMacroArg(-1));
|
if ((s = sym_FindMacroArg(-1)) != NULL) {
|
||||||
|
yyunputstr(s);
|
||||||
|
} else {
|
||||||
|
yyerror("Macro unique label string not defined");
|
||||||
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user