Refer to "label scope", not "symbol scope"

This commit is contained in:
Rangi42
2024-09-09 12:21:23 -04:00
committed by Eldred Habert
parent 750e69c5a6
commit 1adf68d018
3 changed files with 13 additions and 12 deletions

View File

@@ -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;
}