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

Developer

API Reference

ILUA_PUSHILUAFUNCTION()

Brew Release
Brew MP 1.0.2
See Also
ILuaFunction, ILuaEx_PushCClosure(), Lua_UpValueIndex()
Description
Pushes an ILuaFunction onto the Lua stack.
Params
pif
[]:
a pointer to the ILua object
pilf
[]:
a pointer to the ILuaFunction object
nUpvals
[]:
number of upvalues to associate with this function. Upvalue 'i' may indexed by subtracting 'i' from ILua_GLOBALSINDEX.
Interface
Prototype
  •    AEEResult ILua_PushILuaFunction(ILua *pif, ILuaFunction *pilf, int nUpvals)
    
Return
  • AEE_SUCCESS if the function succeeded, otherwise an error code.