| 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> |
no test coverage detected