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

Function get_default_handler

extlibs/sol3/include/sol/sol.hpp:18428–18435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18426
18427 template <typename Reference, bool is_main_ref = false>
18428 static Reference get_default_handler(lua_State* L) {
18429 if (is_stack_based<Reference>::value || L == nullptr)
18430 return Reference(L, lua_nil);
18431 L = is_main_ref ? main_thread(L, L) : L;
18432 lua_getglobal(L, default_handler_name());
18433 auto pp = stack::pop_n(L, 1);
18434 return Reference(L, -1);
18435 }
18436
18437 template <typename T>
18438 static void set_default_handler(lua_State* L, const T& ref) {

Callers 1

basic_protected_functionFunction · 0.85

Calls 3

main_threadFunction · 0.85
lua_getglobalFunction · 0.85
pop_nFunction · 0.85

Tested by

no test coverage detected