Starts and resumes a coroutine in a given thread. The thread must be
pushed on the stack along with its nNumArgs arguments. The call will
return when the coroutine suspends (via ILua_Yield()) or finishes
its execution (when the body function returns). In case of errors
the stack is not unwound and the ILuaDebug interface can be obtained
to inspect it.
a pointer to the ILua object
the number of arguments on the top of the stack above the
coroutine thread. In the case of starting a coroutine,
these are passed to the function body as arguments,
otherwise they are passed as results to yield/ILua_Yield()
if the coroutine is being resumed.
Qualcomm and Brew are trademarks of Qualcomm Incorporated, registered in the United States and other countries. Trademarks of Qualcomm Incorporated are used with permission. Other products and brand names may be trademarks or registered trademarks of their respective owners.