MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setCurVarNameCreate

Method setCurVarNameCreate

Engine/source/console/compiledEval.cpp:248–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248inline void ExprEvalState::setCurVarNameCreate(StringTableEntry name)
249{
250 if(name[0] == '$')
251 currentVariable = globalVars.add(name);
252 else if( getStackDepth() > 0 )
253 currentVariable = getCurrentFrame().add(name);
254 else
255 {
256 currentVariable = NULL;
257 Con::warnf(ConsoleLogEntry::Script, "Accessing local variable in global scope... failed: %s", name);
258 }
259}
260
261//------------------------------------------------------------
262

Callers 1

execMethod · 0.80

Calls 2

warnfFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected