Added AddSystemVariable.
This commit is contained in:
parent
bd39fdf380
commit
df827b5acd
1 changed files with 5 additions and 0 deletions
|
@ -233,6 +233,11 @@ namespace arookas {
|
|||
SymbolTable.Add(symbol);
|
||||
return symbol;
|
||||
}
|
||||
sunStorableSymbol AddSystemVariable(string name) {
|
||||
var symbol = Scopes.DeclareVariable(name);
|
||||
SymbolTable.Add(symbol);
|
||||
return symbol;
|
||||
}
|
||||
void WriteHeader() {
|
||||
mWriter.WriteString("SPCB");
|
||||
mWriter.Write32(mTextOffset);
|
||||
|
|
Loading…
Reference in a new issue