Added debugger breakpoint

This commit is contained in:
Jack Andersen 2015-11-25 21:32:50 -10:00
parent fc073d3f87
commit e7478c5bb4
2 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,8 @@
#include <atomic>
#include <memory>
extern "C" void LogVisorBp();
namespace LogVisor
{
@ -145,6 +147,8 @@ public:
{
for (auto& logger : MainLoggers)
logger->report(m_modName, severity, format, ap);
if (severity == Error || severity == FatalError)
LogVisorBp();
if (severity == FatalError)
abort();
else if (severity == Error)

View File

@ -35,6 +35,8 @@
#define FOREGROUND_WHITE FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE
#endif
void LogVisorBp() {}
namespace LogVisor
{