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

Developer

API Reference

ILUAEX_ARGERROR()

Brew Release
Brew MP 1.0.2
See Also
ILuaEx_Error(), ILuaEx_CheckType(), ILuaEx_CheckNumber(), ILuaEx_CheckInteger(), ILuaEx_CheckLString(), ILuaEx_CheckLWString(), ILuaEx_CheckUData(), ILuaEx_CheckInterface()
Description
Raises an error with the message: "bad argument # to ()". Use this function for argument checking in a Lua C function.
Params
pif
[]:
a pointer to the ILuaEx object
nNumArg
[]:
the position of the "bad" argument
pszExtraMsg
[]:
additional message to output
Interface
Prototype
  •    int ILuaEx_ArgError(ILuaEx *pif, int nNumArg, const char* pszExtraMsg)
    
Return
  • Like ILuaEx_Error(), this function should not return but will cause execution to jump back to the last protected call entry, such as ILua_PCall(). It is idiomatic to call this function as a return from a C function.