| 24181 | } |
| 24182 | |
| 24183 | inline void set_default_state(lua_State* L, lua_CFunction panic_function = &default_at_panic, lua_CFunction traceback_function = c_call<decltype(&default_traceback_error_handler), &default_traceback_error_handler>, exception_handler_function exf = detail::default_exception_handler) { |
| 24184 | lua_atpanic(L, panic_function); |
| 24185 | protected_function::set_default_handler(object(L, in_place, traceback_function)); |
| 24186 | set_default_exception_handler(L, exf); |
| 24187 | register_main_thread(L); |
| 24188 | stack::luajit_exception_handler(L); |
| 24189 | lua_value::set_lua_state(L); |
| 24190 | } |
| 24191 | |
| 24192 | inline std::size_t total_memory_used(lua_State* L) { |
| 24193 | std::size_t kb = lua_gc(L, LUA_GCCOUNT, 0); |
no test coverage detected