Execute

Signatures

void execute(u64 address)
void execute(string symbol)
object execute(u64 address, s32 retType, table argTypes, table argValues)
object execute(u64 address, s32 retType, object argType, object argValue, ...)

Description

Synchronously executes a function with zero or more arguments and returns the result.

The flow of execution is paused until the function finishes, which can cause delays if the function takes a long time.

Operation fails if the given address is 0, the maximum number of arguments is exceeded, or the argument type and value count does not match. In this case, nil will be returned.

Arguments

Address

The memory address of the function.

Symbol

The symbol with the memory address of the function.

Return Type

The type of the return value.

Argument Type(s)

The type of the argument, or a table containing multiple types of arguments.

Only up to 8 arguments are supported.

Argument Value(s)

The value of the argument, or a table containing multiple values of arguments.

Only up to 8 arguments are supported.

Notes

For a list of all argument types, you can view the Arg page.

Last updated