Developer

API Reference

ILua_Yield()

Brew Release
Brew MP 1.0.2
See Also
ILua_NewThread(), ILua_Resume(), ILuaFunction_Call()
Description
Yields a coroutine (Lua thread). This function should only be called as the return expression of a C function.
Parameters
  • pif
    []:
    a pointer to the ILua object
  • nNumResults
    []:
    the number of values from the stack that are passed as results to ILua_Resume()
  • nYieldVal
    []:
    pointer to output integer set to the value to return from the calling C function.
Interface
Prototype
   AEEResult ILua_Yield(ILua *pif, int nNumResults, int *nYieldVal)
Return
AEE_SUCCESS if the function succeeded, otherwise an error code.
  • Follow