mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix INCLUDE ignoring -MG
This commit is contained in:
@@ -204,6 +204,9 @@ void fstk_RunInclude(char const *path)
|
||||
|
||||
if (!fstk_FindFile(path, &fullPath, &size)) {
|
||||
free(fullPath);
|
||||
if (oGeneratedMissingIncludes)
|
||||
oFailedOnMissingInclude = true;
|
||||
else
|
||||
error("Unable to open included file '%s': %s\n", path, strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ void sym_ForEach(void (*func)(struct Symbol *, void *), void *arg)
|
||||
static int32_t Callback_NARG(void)
|
||||
{
|
||||
if (!macro_GetCurrentArgs()) {
|
||||
yyerror("_NARG does not make sense outside of a macro");
|
||||
error("_NARG does not make sense outside of a macro\n");
|
||||
return 0;
|
||||
}
|
||||
return macro_NbArgs();
|
||||
|
||||
Reference in New Issue
Block a user