mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Reset symbol scope on every section change
This commit is contained in:
@@ -181,6 +181,8 @@ static void setSection(struct Section *pSect)
|
|||||||
|
|
||||||
pPCSymbol->pSection = pSect;
|
pPCSymbol->pSection = pSect;
|
||||||
pPCSymbol->isConstant = pSect && pSect->nOrg != -1;
|
pPCSymbol->isConstant = pSect && pSect->nOrg != -1;
|
||||||
|
|
||||||
|
sym_SetCurrentSymbolScope(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -224,7 +226,6 @@ void out_EndLoadSection(void)
|
|||||||
if (!currentLoadSection)
|
if (!currentLoadSection)
|
||||||
yyerror("Found `ENDL` outside of a `LOAD` block");
|
yyerror("Found `ENDL` outside of a `LOAD` block");
|
||||||
currentLoadSection = NULL;
|
currentLoadSection = NULL;
|
||||||
sym_SetCurrentSymbolScope(NULL);
|
|
||||||
|
|
||||||
nPC = pCurrentSection->nPC;
|
nPC = pCurrentSection->nPC;
|
||||||
setSection(pCurrentSection);
|
setSection(pCurrentSection);
|
||||||
|
|||||||
Reference in New Issue
Block a user