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

Developer

API Reference

ILUAEX_CHECKTYPE()

Brew Release
Brew MP 1.0.2
See Also
Lua_Is() ILua_Type(), ILua_LuaType
Description
Checks whether the given function argument is of the expected type.
Params
pif
[]:
a pointer to the ILuaEx object
nIndex
[]:
the number of the argument that is of incorrect type. Note this should be a positive-valued number, as the error message will only print out the error based on function arguments.
nLuaType
[]:
the expected Lua type
Interface
Prototype
  •    void ILuaEx_CheckType(ILuaEx *pif, int nIndex, ILua_LuaType nLuaType)
    
Side Effect
  • This function does not return, but if the argument does not match the expected type, it will throw an error.