Developer

API Reference

ILua_GetMetaTable()

Brew Release
Brew MP 1.0.2
See Also
ILua_SetMetaTable(), ILua_GetNamedMetaTable(), ILua_NewMetaTable()
Description
Pushes the metatable of the value at the given valid index onto the stack.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    the stack index of the object
Interface
Prototype
   AEEResult ILua_GetMetaTable(ILua *pif, int nIndex)
Return
Returns AEE_SUCCESS if the index is valid and the table has a metatable. Otherwise if either the index is not valid or if the value does not have a metatable, AEE_EBADPARM is returned and nothing is pushed on the stack.
  • Follow