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

Function execute

Engine/source/console/console.cpp:1581–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1579}
1580
1581ConsoleValue execute(S32 argc, ConsoleValue argv[])
1582{
1583#ifdef TORQUE_MULTITHREAD
1584 if(isMainThread())
1585 {
1586#endif
1587 ConsoleStackFrameSaver stackSaver;
1588 stackSaver.save();
1589 return _internalExecute(argc, argv);
1590#ifdef TORQUE_MULTITHREAD
1591 }
1592 else
1593 {
1594 SimConsoleThreadExecCallback cb;
1595 SimConsoleThreadExecEvent *evt = new SimConsoleThreadExecEvent(argc, argv, false, &cb);
1596 Sim::postEvent(Sim::getRootGroup(), evt, Sim::getCurrentTime());
1597
1598 return cb.waitForResult();
1599 }
1600#endif
1601}
1602
1603ConsoleValue execute(S32 argc, const char *argv[])
1604{

Callers 15

simObject.cppFile · 0.85
callOnChildrenMethod · 0.85
processMethod · 0.85
_executefFunction · 0.85
TESTFunction · 0.85
processActionMethod · 0.85
fireBreakEventMethod · 0.85
processTickMethod · 0.85
executeMethod · 0.85
processMethod · 0.85
processMethod · 0.85

Calls 14

isMainThreadFunction · 0.85
_internalExecuteFunction · 0.85
getRootGroupFunction · 0.85
waitForResultMethod · 0.80
clearFunctionOffsetMethod · 0.80
getNamespaceMethod · 0.80
postEventFunction · 0.70
getCurrentTimeFunction · 0.70
ConsoleValueClass · 0.70
warnfFunction · 0.70
getIdMethod · 0.65
saveMethod · 0.45

Tested by 1

TESTFunction · 0.68