| 371 | } |
| 372 | |
| 373 | inline detail::error_exception get_error_exception(lua_State* L, int target) { |
| 374 | auto maybe_exc = stack::check_get<detail::error_exception&>(L, target); |
| 375 | if (maybe_exc.has_value()) { |
| 376 | return maybe_exc.value(); |
| 377 | } |
| 378 | return detail::error_exception(detail::direct_error, stack::get<std::string>(L, target)); |
| 379 | } |
| 380 | } |
| 381 | } // namespace stack |
| 382 | } // namespace sol |
nothing calls this directly
no test coverage detected