API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ILUADEBUG_GETSTACK()

Brew Release
Brew MP 1.0.2
See Also
ILuaDebug_GetInfo()
Description
This function retrieves information about the Lua runtime stack. It should be called prior to calling any of the ILuaDebug_GetInfo() related functions.
Params
pif
[]:
a pointer to the ILuaDebug interface
nLevel
[]:
the level at which to retrieve a functions activation record. Level 0 is the current running function, whereas level n+1 is the function that called level n.
Interface
Prototype
  •    int ILuaDebug_GetStack(ILuaDebug *pif, int nLevel)
    
Return
  • AEE_SUCCESS if there are no errors, otherwise if nLevel is greater than the overall stack depth, returns AEE_EFAILED.