MCPcopy Create free account
hub / github.com/ThePhD/sol2 / catch

Function catch

include/sol/trampoline.hpp:123–125  ·  view source on GitHub ↗

LuaJIT cannot have the catchall when the safe propagation is on but LuaJIT will swallow all C++ errors if we don't at least catch std::exception ones

Source from the content-addressed store, hash-verified

121 // but LuaJIT will swallow all C++ errors
122 // if we don't at least catch std::exception ones
123 catch (...) {
124 call_exception_handler(L, optional<const std::exception&>(nullopt), "caught (...) exception");
125 }
126#endif
127 return lua_error(L);
128#endif // Safe exceptions

Callers

nothing calls this directly

Calls 1

call_exception_handlerFunction · 0.85

Tested by

no test coverage detected