Developer

API Reference

ILuaDebug_GetLocal()

Brew Release
Brew MP 1.0.2
See Also
AEELuaDebugHookFunc, ILuaDebug_SetLocal(), ILuaDebug_GetStack()
Description
Gets information about a local variable. This must be called within a Hook function or after a call to ILuaDebug_GetStack(). The variable's value is then pushed on the Lua stack.
Parameters
  • pif
    []:
    a pointer to the ILuaDebug interface
  • nLocalIdx
    []:
    the index of the local variable to inspect, starting at 1 for the first parameter or active local variable
  • ppszName
    []:
    output pointer set to the local variable's name
Interface
Prototype
   int ILuaDebug_GetLocal(ILuaDebug *pif, int nLocalIdx, const char **ppszName)
Return
AEE_SUCCESS if there are no errors, otherwise AEE_EFAILED if nLocalIdx is greater than the number of active local variables.
  • Follow