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

Developer

API Reference

ILUA_OBJLEN()

Brew Release
Brew MP 1.0.2
Description
Returns the "length" of the value at the given acceptable index. For strings, this is the string length; for tables, this is the result of the length operator ('#'); for userdata, this is the size of the block of memory allocated for the userdata; for other values, it is 0.
Params
pif
[]:
a pointer to the ILua object
nIndex
[]:
the stack index of the object
pnLen
[]:
a pointer to an integer set on return to the length of the given object
Interface
Prototype
  •    AEEResult ILua_ObjLen(ILua *pif, int nIndex, int *pnLen)
    
Return
  • AEE_SUCCESS if the function succeeded, otherwise an error code.