mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Implement state file output for RGBASM (#1435)
This commit is contained in:
@@ -106,6 +106,8 @@ static void updateSymbolFilename(Symbol &sym) {
|
||||
|
||||
// Create a new symbol by name
|
||||
static Symbol &createSymbol(std::string const &symName) {
|
||||
static uint32_t nextDefIndex = 0;
|
||||
|
||||
Symbol &sym = symbols[symName];
|
||||
|
||||
sym.name = symName;
|
||||
@@ -115,6 +117,7 @@ static Symbol &createSymbol(std::string const &symName) {
|
||||
sym.src = fstk_GetFileStack();
|
||||
sym.fileLine = sym.src ? lexer_GetLineNo() : 0;
|
||||
sym.ID = -1;
|
||||
sym.defIndex = nextDefIndex++;
|
||||
|
||||
return sym;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user