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

Function evaluatef

Engine/source/console/console.cpp:1477–1489  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1475
1476//------------------------------------------------------------------------------
1477ConsoleValueRef evaluatef(const char* string, ...)
1478{
1479 ConsoleStackFrameSaver stackSaver;
1480 stackSaver.save();
1481
1482 char buffer[4096];
1483 va_list args;
1484 va_start(args, string);
1485 dVsprintf(buffer, sizeof(buffer), string, args);
1486 va_end(args);
1487 CodeBlock *newCodeBlock = new CodeBlock();
1488 return newCodeBlock->compileExec(NULL, buffer, false, 0);
1489}
1490
1491//------------------------------------------------------------------------------
1492

Callers 13

sEnumCallbackFunction · 0.85
TelnetDebuggerMethod · 0.85
executionStoppedMethod · 0.85
generateInputEventMethod · 0.85
initGLProfilerFunction · 0.85
onAddMethod · 0.85
_loadMethod · 0.85
onAddMethod · 0.85
addDynamicFieldMethod · 0.85
setDataMethod · 0.85
createContentMethod · 0.85
createContentMethod · 0.85

Calls 3

dVsprintfFunction · 0.85
compileExecMethod · 0.80
saveMethod · 0.45

Tested by

no test coverage detected