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

Developer

API Reference

ILUA_NEWMETATABLE()

Brew Release
Brew MP 1.0.2
See Also
ILua_GetMetaTable(), ILua_SetMetaTable(), Lua_GetNamedMetaTable(), ILuaEx_NewUserData()
Description
Retrieves the named metatable or creates and adds to the registry a new table to be used as a metatable for userdata. In either case the table is pushed onto the stack.
Params
pif
[]:
a pointer to the ILua object
pszName
[]:
the name to associate the metatable with in the registry
pbExists
[]:
pointer to boolean value set on return to TRUE if the registry already has the key pName, otherwise FALSE if a new table is created and added to the registry.
Interface
Prototype
  •    AEEResult ILua_NewMetaTable(ILua *pif, const char* pszName,
                                   boolean *pbExists)
    
Return
  • AEE_SUCCESS if the function succeeded, otherwise an error code.