debug: fully qualify panic detail functions

silences warnings under clang
This commit is contained in:
Danny Robson 2017-09-08 14:10:11 +10:00
parent a1c8c8e2ac
commit c105fb4d0f

View File

@ -26,7 +26,7 @@ using namespace util::debug;
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void void
detail::panic (const char *msg) util::debug::detail::panic (const char *msg)
{ {
std::cerr << "PANIC: " << msg << "\n" << ::debug::backtrace () << std::endl; std::cerr << "PANIC: " << msg << "\n" << ::debug::backtrace () << std::endl;
breakpoint (); breakpoint ();
@ -36,7 +36,7 @@ detail::panic (const char *msg)
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void void
detail::not_implemented (const char *msg) util::debug::detail::not_implemented (const char *msg)
{ {
panic (msg); panic (msg);
} }
@ -44,7 +44,7 @@ detail::not_implemented (const char *msg)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void void
detail::unreachable (const char *msg) util::debug::detail::unreachable (const char *msg)
{ {
panic (msg); panic (msg);
} }