mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Refer to "label scope", not "symbol scope"
This commit is contained in:
@@ -253,11 +253,11 @@ uint32_t sym_GetConstantValue(std::string const &symName) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Symbol const *sym_GetCurrentSymbolScope() {
|
||||
Symbol const *sym_GetCurrentLabelScope() {
|
||||
return labelScope;
|
||||
}
|
||||
|
||||
void sym_SetCurrentSymbolScope(Symbol const *newScope) {
|
||||
void sym_SetCurrentLabelScope(Symbol const *newScope) {
|
||||
labelScope = newScope;
|
||||
}
|
||||
|
||||
@@ -415,6 +415,7 @@ Symbol *sym_AddLabel(std::string const &symName) {
|
||||
// Set the symbol as the new scope
|
||||
if (sym)
|
||||
labelScope = sym;
|
||||
|
||||
return sym;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user