Developer

API Reference

ILua_SetFEnv()

Brew Release
Brew MP 1.0.2
See Also
ILua_GetFEnv()
Description
Pops a table from the stack and sets it as the environment for the function, thread or userdata value at the given valid index.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nIndex
    []:
    the stack index of the function, thread or userdata value
Interface
Prototype
   AEEResult ILua_SetFEnv(ILua *pif, int nIndex)
Return
Returns AEE_SUCCESS if the environment was set, otherwise returns AEE_EINVALIDITEM if the value at the given index is neither a function, a thread nor a userdata. In either case the table is popped from the top of the stack.
  • Follow