#include <C4AulExec.h>
Public Member Functions | |
C4AulExec () | |
C4Value | Exec (C4AulScriptFunc *pSFunc, C4PropList *p, C4Value pPars[], bool fPassErrors) |
C4Value | DirectExec (C4PropList *p, const char *szScript, const char *szContext, bool fPassErrors=false, C4AulScriptContext *context=nullptr, bool parse_function=false) |
void | StartTrace () |
void | StartDirectExec () |
void | StopDirectExec () |
int | GetContextDepth () const |
C4AulScriptContext * | GetContext (int iLevel) |
void | LogCallStack () |
void | ClearPointers (C4Object *) |
Static Public Member Functions | |
static C4String * | FnTranslate (C4PropList *_this, C4String *text) |
static bool | FnLogCallStack (C4PropList *_this) |
Friends | |
class | C4AulProfiler |
Definition at line 54 of file C4AulExec.h.
|
inline |
Definition at line 58 of file C4AulExec.h.
void C4AulExec::ClearPointers | ( | C4Object * | obj | ) |
Definition at line 136 of file C4AulExec.cpp.
Referenced by C4Game::ClearPointers().
C4Value C4AulExec::DirectExec | ( | C4PropList * | p, |
const char * | szScript, | ||
const char * | szContext, | ||
bool | fPassErrors = false , |
||
C4AulScriptContext * | context = nullptr , |
||
bool | parse_function = false |
||
) |
Definition at line 1012 of file C4AulExec.cpp.
References AddDbgRec(), C4VNull, Config, C4ConfigGeneral::DebugRec, DEBUGREC_SCRIPT, Exec(), GameScript, C4Config::General, C4PropList::GetDef(), C4AulScriptEngine::GetErrorHandler(), C4GameScriptHost::GetPropList(), C4PropList::GetPropListNumbered(), C4PropList::IsStatic(), LogCallStack(), C4PropListNumbered::Number, C4AulErrorHandler::OnError(), C4AulParSet::Par, C4AulScriptFunc::ParseDirectExecFunc(), C4AulScriptFunc::ParseDirectExecStatement(), RCT_DirectExec, ScriptEngine, StartDirectExec(), StopDirectExec(), and C4AulError::what().
Referenced by C4Object::MenuCommand(), C4ObjectMenu::MenuCommand(), C4EditCursor::PerformDuplication(), C4PropertyPath::ResolveRoot(), and C4PropertyPath::ResolveValue().
C4Value C4AulExec::Exec | ( | C4AulScriptFunc * | pSFunc, |
C4PropList * | p, | ||
C4Value | pPars[], | ||
bool | fPassErrors | ||
) |
Referenced by DirectExec(), and C4AulScriptFunc::Exec().
|
static |
Definition at line 130 of file C4AulExec.cpp.
References AulExec, and LogCallStack().
Referenced by InitCoreFunctionMap().
|
static |
Definition at line 100 of file C4AulExec.cpp.
References AulExec, DebugLogF(), C4AulScriptContext::Func, C4PropList::GetDef(), LogCallStack(), C4AulScriptFunc::pOrgScript, ReturnIfTranslationAvailable, C4Def::Script, and C4ScriptGuiWindowPropertyName::text.
Referenced by InitCoreFunctionMap().
|
inline |
Definition at line 88 of file C4AulExec.h.
References GetContextDepth().
Referenced by C4AulDebug::DebugStep().
|
inline |
Definition at line 87 of file C4AulExec.h.
Referenced by C4AulDebug::DebugStep(), and GetContext().
void C4AulExec::LogCallStack | ( | ) |
Definition at line 94 of file C4AulExec.cpp.
Referenced by DirectExec(), FnLogCallStack(), and FnTranslate().
|
inline |
Definition at line 84 of file C4AulExec.h.
References C4TimeMilliseconds::Now().
Referenced by DirectExec().
void C4AulExec::StartTrace | ( | ) |
Definition at line 905 of file C4AulExec.cpp.
|
inline |
Definition at line 85 of file C4AulExec.h.
References C4TimeMilliseconds::Now().
Referenced by DirectExec().
|
friend |
Definition at line 78 of file C4AulExec.h.