mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
Output exported numeric constants to sym file (#1439)
This commit is contained in:
@@ -22,6 +22,11 @@ Label const &Symbol::label() const {
|
||||
return std::get<Label>(data);
|
||||
}
|
||||
|
||||
void sym_ForEach(void (*callback)(Symbol &)) {
|
||||
for (auto &it : symbols)
|
||||
callback(*it.second);
|
||||
}
|
||||
|
||||
void sym_AddSymbol(Symbol &symbol) {
|
||||
Symbol *other = sym_GetSymbol(symbol.name);
|
||||
auto *symValue = std::get_if<int32_t>(&symbol.data);
|
||||
|
||||
Reference in New Issue
Block a user