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

Developer

API Reference

ILUA_GETTOP()

Brew Release
Brew MP 1.0.2
See Also
ILua_SetTop()
Description
Returns the index of the top element in the stack. This is equivalent to the number of elements in the stack, with 0 indicating an empty stack.
Params
pif
[]:
a pointer to the ILua object
pnTop
[]:
a pointer to an integer which will be set on return to the index of the top element in the stack.
Interface
Prototype
  •    AEEResult ILua_GetTop(ILua *pif, int *pnTop)
    
Return
  • AEE_SUCCESS if the function succeeded, otherwise an error code.