MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / register_main_thread

Function register_main_thread

extlibs/sol3/include/sol/sol.hpp:24126–24138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24124
24125namespace sol {
24126 inline void register_main_thread(lua_State* L) {
24127#if SOL_LUA_VERSION < 502
24128 if (L == nullptr) {
24129 lua_pushnil(L);
24130 lua_setglobal(L, detail::default_main_thread_name());
24131 return;
24132 }
24133 lua_pushthread(L);
24134 lua_setglobal(L, detail::default_main_thread_name());
24135#else
24136 (void)L;
24137#endif
24138 }
24139
24140 inline int default_at_panic(lua_State* L) {
24141#if defined(SOL_NO_EXCEPTIONS) && SOL_NO_EXCEPTIONS

Callers 1

set_default_stateFunction · 0.85

Calls 3

lua_pushnilFunction · 0.85
lua_setglobalFunction · 0.85
lua_pushthreadFunction · 0.85

Tested by

no test coverage detected