Developer

API Reference

ILuaEx_CheckUData()

Brew Release
Brew MP 1.0.2
See Also
ILua_PushLightUserData(), ILua_PushUserData(), ILua_NewMetaTable(), ILua_SetMetaTable(), ILua_GetNamedMetaTable()
Description
Checks whether the given function argument is a userdata type with the given named metatable.
Parameters
  • pif
    []:
    a pointer to the ILuaEx object
  • nIndex
    []:
    the number of the argument to check. Note this should be a positive-valued number, as the error message will only print out the error based on function arguments.
  • pszName
    []:
    the name of the metatable
Interface
Prototype
   void *ILuaEx_CheckUData(ILuaEx *pif, int nIndex, const char *pszName)
Side Effect
This function does not return, but if the argument does not match the expected type, it will throw an error.
  • Follow