Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Philip Trettner
polymesh
Commits
cebf8a70
Commit
cebf8a70
authored
Apr 07, 2020
by
Philip Trettner
Browse files
fixed warning
parent
ee575532
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/polymesh/assert.cc
View file @
cebf8a70
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment