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

Function basic_protected_function

extlibs/sol3/include/sol/sol.hpp:18575–18584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18573 basic_protected_function() = default;
18574 template <typename T, meta::enable<meta::neg<std::is_same<meta::unqualified_t<T>, basic_protected_function>>, meta::neg<std::is_base_of<proxy_base_tag, meta::unqualified_t<T>>>, meta::neg<std::is_same<base_t, stack_reference>>, meta::neg<std::is_same<lua_nil_t, meta::unqualified_t<T>>>, is_lua_reference<meta::unqualified_t<T>>> = meta::enabler>
18575 basic_protected_function(T&& r) noexcept
18576 : base_t(std::forward<T>(r)), error_handler(get_default_handler(r.lua_state())) {
18577#if defined(SOL_SAFE_REFERENCES) && SOL_SAFE_REFERENCES
18578 if (!is_function<meta::unqualified_t<T>>::value) {
18579 auto pp = stack::push_pop(*this);
18580 constructor_handler handler{};
18581 stack::check<basic_protected_function>(lua_state(), -1, handler);
18582 }
18583#endif // Safety
18584 }
18585 basic_protected_function(const basic_protected_function&) = default;
18586 basic_protected_function& operator=(const basic_protected_function&) = default;
18587 basic_protected_function(basic_protected_function&&) = default;

Callers 1

sol.hppFile · 0.70

Calls 4

get_default_handlerFunction · 0.85
push_popFunction · 0.85
lua_stateMethod · 0.45
stack_indexMethod · 0.45

Tested by

no test coverage detected