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 c94cc0f commit 34506f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hx/Debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ static void CriticalErrorHandler(String inErr, bool allowFixup)
#ifdef HXCPP_STACK_TRACE
hx::StackContext *ctx = hx::StackContext::getCurrent();
ctx->beginCatch(true);
ctx->dumpExceptionStack();
#endif

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

#ifdef HXCPP_STACK_TRACE
ctx->dumpExceptionStack();
#endif

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

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

0 comments on commit 34506f3

Please sign in to comment.