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

Function getAddLocalVariableEntry

Engine/source/console/console.cpp:846–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

844}
845
846Dictionary::Entry *getAddLocalVariableEntry(const char *name)
847{
848 name = prependPercent(name);
849 StringTableEntry stName = StringTable->insert(name);
850 Dictionary::Entry *entry = gEvalState.getCurrentFrame().lookup(stName);
851 if (!entry)
852 entry = gEvalState.getCurrentFrame().add(stName);
853 return entry;
854}
855
856void setVariable(const char *name, const char *value)
857{

Callers

nothing calls this directly

Calls 4

prependPercentFunction · 0.85
insertMethod · 0.45
lookupMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected