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

Method _exec

Engine/source/console/console.cpp:2709–2727  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2707//------------------------------------------------------------------------------
2708
2709ConsoleValueRef _BaseEngineConsoleCallbackHelper::_exec()
2710{
2711 ConsoleValueRef returnValue;
2712 if( mThis )
2713 {
2714 // Cannot invoke callback until object has been registered
2715 if (mThis->isProperlyAdded()) {
2716 returnValue = Con::_internalExecute( mThis, mArgc, mArgv, false );
2717 } else {
2718 STR.clearFunctionOffset();
2719 returnValue = ConsoleValueRef();
2720 }
2721 }
2722 else
2723 returnValue = Con::_internalExecute( mArgc, mArgv );
2724
2725 mArgc = mInitialArgc; // reset args
2726 return returnValue;
2727}
2728
2729ConsoleValueRef _BaseEngineConsoleCallbackHelper::_execLater(SimConsoleThreadExecEvent *evt)
2730{

Callers 1

dispatchHelperMethod · 0.80

Calls 4

_internalExecuteFunction · 0.85
isProperlyAddedMethod · 0.80
clearFunctionOffsetMethod · 0.80
ConsoleValueRefClass · 0.70

Tested by

no test coverage detected