Developer

API Reference

ILua_PushInterface()

Brew Release
Brew MP 1.0.2
See Also
ILua_IsInterface(), ILuaEx_CheckInterface(), ILua_ToInterface()
Description
Pushes an IQI* interface onto the Lua stack. This helps allow scripts to call an interface's methods within the Lua environment. Note this will increment the reference count of the object as the Lua VM will maintain its own handle to the object and release it if it becomes garbage collected.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • piqi
    []:
    the interface pointer to insert into the Lua stack
  • iid
    []:
    the object's interface ID
Interface
Prototype
   AEEResult ILua_PushInterface(ILua *pif, IQI *piqi, AEEIID iid)
Return
An error code. An object will be pushed onto the stack only if the return code is AEE_SUCCESS.
  • Follow