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

Method _exec

Engine/source/console/console.cpp:2596–2616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2594//------------------------------------------------------------------------------
2595
2596ConsoleValue _BaseEngineConsoleCallbackHelper::_exec()
2597{
2598 if( mThis )
2599 {
2600 // Cannot invoke callback until object has been registered
2601 if (mThis->isProperlyAdded())
2602 {
2603 ConsoleValue returnValue = Con::_internalExecute( mThis, mArgc, mArgv, false );
2604 mArgc = mInitialArgc; // reset
2605 return std::move(returnValue);
2606 }
2607
2608 STR.clearFunctionOffset();
2609 mArgc = mInitialArgc; // reset
2610 return std::move(ConsoleValue());
2611 }
2612
2613 ConsoleValue returnValue = std::move(Con::_internalExecute( mArgc, mArgv ));
2614 mArgc = mInitialArgc; // reset args
2615 return std::move(returnValue);
2616}
2617
2618ConsoleValue _BaseEngineConsoleCallbackHelper::_execLater(SimConsoleThreadExecEvent *evt)
2619{

Callers 1

dispatchHelperMethod · 0.80

Calls 4

_internalExecuteFunction · 0.85
isProperlyAddedMethod · 0.80
clearFunctionOffsetMethod · 0.80
ConsoleValueClass · 0.70

Tested by

no test coverage detected