| 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 | { |