Revision Release 2022.3683 Keywords iOS, Solar2D Native, C, CoronaLua.h, CoronaLuaGetCoronaThread See also CoronaLua.h Corona C Functions
Gives you the main Lua state used by Corona given the Lua state corresponding to a coroutine
. Returns NULL
if the coroutine is not a coroutine that belongs to Corona's main Lua state. If coroutine
happens to be Corona's main Lua state, then it returns coroutine
.
Lua uses the word "thread" to mean coroutine, for example a cooperative
lua_State* CoronaLuaGetCoronaThread( lua_State *coroutine )