mirror of https://github.com/AxioDL/logvisor.git
Added debugger breakpoint
This commit is contained in:
parent
fc073d3f87
commit
e7478c5bb4
|
@ -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)
|
||||
|
|
|
@ -35,6 +35,8 @@
|
|||
#define FOREGROUND_WHITE FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE
|
||||
#endif
|
||||
|
||||
void LogVisorBp() {}
|
||||
|
||||
namespace LogVisor
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue