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

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().
Params
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.