VScript: fix method order

More logical order of newly added methods.
This commit is contained in:
Kawe Mazidjatari 2024-04-19 13:14:35 +02:00
parent f8f8be9870
commit e7fd19cdf3
2 changed files with 12 additions and 12 deletions

View File

@ -130,16 +130,6 @@ bool CSquirrelVM::Run(const SQChar* const script)
return success;
}
//---------------------------------------------------------------------------------
// Purpose: executes a code callback
// Input : *name -
// Output : true on success, false otherwise
//---------------------------------------------------------------------------------
bool CSquirrelVM::ExecuteCodeCallback(const SQChar* const name)
{
return CSquirrelVM__ExecuteCodeCallback(this, name);
}
//---------------------------------------------------------------------------------
// Purpose: executes a function by handle
// Input : hFunction -
@ -155,6 +145,16 @@ ScriptStatus_t CSquirrelVM::ExecuteFunction(HSCRIPT hFunction, void** pArgs, uns
return CSquirrelVM__ExecuteFunction(this, hFunction, pArgs, nArgs, pReturn, hScope);
}
//---------------------------------------------------------------------------------
// Purpose: executes a code callback
// Input : *name -
// Output : true on success, false otherwise
//---------------------------------------------------------------------------------
bool CSquirrelVM::ExecuteCodeCallback(const SQChar* const name)
{
return CSquirrelVM__ExecuteCodeCallback(this, name);
}
//---------------------------------------------------------------------------------
// Purpose: registers a code function
// Input : *s -

View File

@ -25,14 +25,14 @@ public:
SQRESULT RegisterFunction(const SQChar* scriptname, const SQChar* nativename, const SQChar* helpstring, const SQChar* returntype, const SQChar* parameters, void* functor);
SQRESULT RegisterConstant(const SQChar* name, SQInteger value);
bool ExecuteCodeCallback(const SQChar* const name);
FORCEINLINE HSQUIRRELVM GetVM() const { return m_hVM; }
FORCEINLINE SQCONTEXT GetContext() const { return m_iContext; }
FORCEINLINE eDLL_T GetNativeContext() const { return (eDLL_T)GetContext(); }
bool Run(const SQChar* const script);
ScriptStatus_t ExecuteFunction(HSCRIPT hFunction, void** pArgs, unsigned int nArgs, void* pReturn, HSCRIPT hScope);
bool ExecuteCodeCallback(const SQChar* const name);
private:
bool unk_00;