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

Function set_default_state

extlibs/sol3/include/sol/sol.hpp:24183–24190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);

Callers 1

stateMethod · 0.85

Calls 5

set_default_handlerFunction · 0.85
objectClass · 0.85
register_main_threadFunction · 0.85
luajit_exception_handlerFunction · 0.85

Tested by

no test coverage detected