Skip to content

Commit

Permalink
Update Debug.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
MAJigsaw77 authored Aug 17, 2024
1 parent 1260d89 commit c94cc0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hx/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ static void CriticalErrorHandler(String inErr, bool allowFixup)
return;
#endif

if (sCriticalErrorHandler!=null())
sCriticalErrorHandler(inErr);

#ifdef HXCPP_STACK_TRACE
hx::StackContext *ctx = hx::StackContext::getCurrent();
ctx->beginCatch(true);
ctx->dumpExceptionStack();
#endif

if (sCriticalErrorHandler!=null())
sCriticalErrorHandler(inErr);

DBGLOG("Critical Error: %s\n", inErr.utf8_str());

#if defined(HX_WINDOWS) && !defined(HX_WINRT)
Expand Down

0 comments on commit c94cc0f

Please sign in to comment.