| 24124 | |
| 24125 | namespace 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 |
no test coverage detected