MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / resetTables

Function resetTables

Engine/source/console/compiler.cpp:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 void resetTables()
125 {
126 setCurrentStringTable(&gGlobalStringTable);
127 setCurrentFloatTable(&gGlobalFloatTable);
128 getGlobalFloatTable().reset();
129 getGlobalStringTable().reset();
130 getFunctionFloatTable().reset();
131 getFunctionStringTable().reset();
132 getIdentTable().reset();
133 getFunctionVariableMappingTable().reset();
134 gGlobalScopeFuncVars.clear();
135 gFuncVars = gIsEvalCompile ? &gEvalFuncVars : &gGlobalScopeFuncVars;
136 }
137
138 void *consoleAlloc(U32 size) { return gConsoleAllocator.alloc(size); }
139 void consoleAllocReset() { gConsoleAllocator.freeBlocks(); }

Callers 2

compileMethod · 0.85
compileExecMethod · 0.85

Calls 4

setCurrentStringTableFunction · 0.85
setCurrentFloatTableFunction · 0.85
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected