Store a pointer to the scoped label, not just its name

This commit is contained in:
Rangi42
2024-09-08 22:35:42 -04:00
committed by Eldred Habert
parent 1dcc000572
commit 155e7287db
3 changed files with 21 additions and 24 deletions

View File

@@ -4,7 +4,6 @@
#define RGBDS_ASM_SYMBOL_HPP
#include <memory>
#include <optional>
#include <stdint.h>
#include <string.h>
#include <string>
@@ -100,7 +99,7 @@ bool sym_IsPurgedScoped(std::string const &symName);
void sym_Init(time_t now);
// Functions to save and restore the current symbol scope.
std::optional<std::string> const &sym_GetCurrentSymbolScope();
void sym_SetCurrentSymbolScope(std::optional<std::string> const &newScope);
Symbol const *sym_GetCurrentSymbolScope();
void sym_SetCurrentSymbolScope(Symbol const *newScope);
#endif // RGBDS_ASM_SYMBOL_HPP