mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Rework defining variables on command-line
Avoids allocating memory Detects CLI errors even when failing to open file Reports symbols as defined on command-line instead of input line 0 (!?)
This commit is contained in:
@@ -104,6 +104,9 @@ void fstk_DumpCurrent(void)
|
||||
|
||||
struct FileStackNode *fstk_GetFileStack(void)
|
||||
{
|
||||
if (!contextStack)
|
||||
return NULL;
|
||||
|
||||
struct FileStackNode *node = contextStack->fileInfo;
|
||||
|
||||
/* Mark node and all of its parents as referenced if not already so they don't get freed */
|
||||
|
||||
Reference in New Issue
Block a user