Developer

API Reference

Lua_IsNumber

Brew Release
Brew MP 1.0.2
See Also
ILua_IsConvertible(), ILua_IsInteger(), ILua_ToNumber(), ILua_PushNumber(), ILua_PushInteger()
Description
This function returns true if the value at the given acceptable index on the Lua stack is a strict number. To check whether a Lua value can be converted to a number, use ILua_IsConvertible().
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    the stack index of the value to check
  • pb
    []:
    a pointer to the boolean output to be set on return
Prototype
   AEEResult Lua_IsNumber(ILua *pif, int nIndex, boolean *pb)
Return
AEE_SUCCESS: if the item was able to be identified, otherwise an error code.
  • Follow