Developer

API Reference

ILua_ToInterface()

Brew Release
Brew MP 1.0.2
See Also
ILua_IsInterface(), ILuaEx_CheckInterface(), ILua_PushInterface()
Description
Returns the element at position nIndex on the Lua stack as a pointer to an IQI-derived interface. Note this function will not check the validity of its arguments and will blindly cast whatever object is at the specified stack position into a pointer. ILua_IsInterface() or ILuaEx_CheckInterface() should be used instead.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    the stack index of the object
  • ppiqi
    []:
    An IQI* interface pointer of the object on the stack, with its reference count incremented by 1, or NULL if there are errors.
Interface
Prototype
   AEEResult ILua_ToInterface(ILua *pif, int nIndex, IQI **ppiqi)
  • Follow