Commit cebf8a70 authored by Philip Trettner's avatar Philip Trettner
Browse files

fixed warning

parent ee575532
......@@ -5,6 +5,10 @@
namespace
{
struct assertion_not_handled
{
};
using assertion_handler_t = void (*)(polymesh::detail::assertion_info const&);
thread_local assertion_handler_t s_current_handler = nullptr;
......@@ -28,9 +32,8 @@ void polymesh::detail::assertion_failed(assertion_info const& info)
s_current_handler(info);
else
default_assertion_handler(info);
}
void polymesh::set_assertion_handler(void (*handler)(detail::assertion_info const&))
{
s_current_handler = handler;
throw assertion_not_handled{};
}
void polymesh::set_assertion_handler(void (*handler)(detail::assertion_info const&)) { s_current_handler = handler; }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment