Developer

API Reference

ILua_ToInteger()

Brew Release
Brew MP 1.0.2
See Also
ILua_IsConvertible()
Description
Converts the Lua value at the given acceptable index to an integer value. The Lua value must be a number or a string convertible to a number. If the number is not an integer, it will be truncated.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    index of the value to convert
  • pNum
    []:
    pointer to the converted integer on output
Interface
Prototype
   AEEResult ILua_ToInteger(ILua *pif, int nIndex, int *pNum)
Return
AEE_SUCCESS if the function succeeded, otherwise an error code.
  • Follow