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

Function handle_protected_exception

extlibs/sol3/include/sol/sol.hpp:18463–18473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18461 namespace detail {
18462 template <bool b, typename handler_t>
18463 inline void handle_protected_exception(lua_State* L, optional<const std::exception&> maybe_ex, const char* error, detail::protected_handler<b, handler_t>& h) {
18464 h.stackindex = 0;
18465 if (b) {
18466 h.target.push();
18467 detail::call_exception_handler(L, maybe_ex, error);
18468 lua_call(L, 1, 1);
18469 }
18470 else {
18471 detail::call_exception_handler(L, maybe_ex, error);
18472 }
18473 }
18474 }
18475
18476 template <typename ref_t, bool aligned = false, typename handler_t = reference>

Callers 2

sol.hppFile · 0.85
catchFunction · 0.85

Calls 2

call_exception_handlerFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected