Developer

API Reference

ILuaDebug_SetLocal()

Brew Release
Brew MP 1.0.2
See Also
AEELuaDebugHookFunc, ILuaDebug_GetLocal(), ILuaDebug_GetStack()
Description
Pops a value from the Lua stack and sets it as the value of a local variable. This must be called within a Hook function or after a call to ILuaDebug_GetStack().
Parameters
  • pif
    []:
    a pointer to the ILuaDebug interface
  • nLocalIdx
    []:
    the index of the local variable to set, 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_SetLocal(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