VM_Hook

VM_Hook

Class describing a hook into the VM

Constructor

new VM_Hook(pMethodName, pHook, pEnable)

Source:
Parameters:
Name Type Default Description
pMethodName String

The signature of the method to hook

pHook function
pEnable Boolean true

Methods

exec(pVM, pThis, pArgs) → {*}

Source:

To execute the hook code with the given context

Parameters:
Name Type Description
pVM VM

The context of the VM

pThis VM_ClassInstance

If the method is not static, the instance invoking the method. Else, if the method is static, it is NULL

pArgs Symbol

The registers containing value of arguments

Returns:

Value returned by hook function

Type
*