add user-defined function and variable type in script engine

This commit is contained in:
xmaple555 2024-03-02 01:59:33 +08:00
parent a8d8edfe4d
commit 29d79991e4
27 changed files with 2325 additions and 874 deletions

View file

@ -358,6 +358,14 @@ ScriptEngineEvalWrapper(PGUEST_REGS GuestRegs,
ACTION_BUFFER ActionBuffer = {0};
SYMBOL ErrorSymbol = {0};
//
//
//
PSYMBOL_BUFFER StackBuffer = GetStackBuffer();
int StackIndx = 0;
int StackBaseIndx = 0;
int StackTempBaseIndx = 0;
if (CodeBuffer->Message == NULL)
{
for (int i = 0; i < CodeBuffer->Pointer;)
@ -386,6 +394,10 @@ ScriptEngineEvalWrapper(PGUEST_REGS GuestRegs,
&VariablesList,
CodeBuffer,
&i,
StackBuffer,
&StackIndx,
&StackBaseIndx,
&StackTempBaseIndx,
&ErrorSymbol) == TRUE)
{
CHAR NameOfOperator[MAX_FUNCTION_NAME_LENGTH] = {0};