MCPcopy Create free account
hub / github.com/defold/defold / GetMainThread

Function GetMainThread

engine/script/src/script.cpp:731–738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729 }
730
731 lua_State* GetMainThread(lua_State* L)
732 {
733 lua_getglobal(L, SCRIPT_MAIN_THREAD);
734 lua_State* main_thread = (lua_State*)lua_touserdata(L, -1);
735 lua_pop(L, 1);
736
737 return main_thread;
738 }
739
740 uint32_t SetUserType(lua_State* L, int meta_table_index, const char* name)
741 {

Callers 7

CreateCallbackFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
CreateTextureAsyncFunction · 0.85
Sys_LoadBufferAsyncFunction · 0.85
ParticleFX_PlayFunction · 0.85

Calls 1

lua_touserdataFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
TEST_FFunction · 0.68