Developer

API Reference

AEELuaDebugHookEvent

Brew Release
Brew MP 1.0.2
See Also
AEELuaDebugHookFunc, ILuaDebug_GetHook(), ILuaDebug_SetHook()
Description
A hook function may be triggered by one of the following types of events: a call event anytime Lua calls a function; a return event when a function returns; a line event when Lua executes a new line of code; a count event whenever a given number of instructions is executed; and a tail return event when Lua simulates a return from a function that did a tail call.
Use the ILuaDebug_SetHook() function to set a hook function to be called for these events. The mask parameter specifies on which event to call your hook function, with AEELUADEBUG_MASKRET acting as the mask for both return and tail return hooks.
Definition
   typedef enum {
      AEELUADEBUG_HOOKCALL,
      AEELUADEBUG_HOOKRET,
      AEELUADEBUG_HOOKLINE,
      AEELUADEBUG_HOOKCOUNT,
      AEELUADEBUG_HOOKTAILRET
   } AEELuaDebugHookEvent;
  • Follow