From 960882555784cfe77214bb61e1452651d268e152 Mon Sep 17 00:00:00 2001 From: "Neo][" Date: Thu, 15 Mar 2018 14:08:14 +0500 Subject: [PATCH] Reformat source 2 --- src/xrCore/xrDebug.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/xrCore/xrDebug.h b/src/xrCore/xrDebug.h index 94c39d7ddd6..7dbdb9de4d5 100644 --- a/src/xrCore/xrDebug.h +++ b/src/xrCore/xrDebug.h @@ -43,8 +43,6 @@ class XRCORE_API xrDebug using UnhandledExceptionFilter = LONG(WINAPI*)(EXCEPTION_POINTERS *exPtrs); private: - static const u16 MaxFramesCountDefault = 512; - static UnhandledExceptionFilter PrevFilter; static OutOfMemoryCallbackFunc OutOfMemoryCallback; static CrashHandler OnCrash; @@ -77,20 +75,15 @@ class XRCORE_API xrDebug static void DoExit(const std::string &message); static void LogStackTrace(const char *header); - static xr_vector BuildStackTrace(u16 maxFramesCount = MaxFramesCountDefault); + static xr_vector BuildStackTrace(u16 maxFramesCount = 512); private: + static bool symEngineInitialized; + static Lock dbgHelpLock; static void FormatLastError(char *buffer, const size_t &bufferSize); static void SetupExceptionHandler(const bool &dedicated); static LONG WINAPI UnhandledFilter(EXCEPTION_POINTERS *exPtrs); static void WINAPI PreErrorHandler(INT_PTR); - static void SaveMiniDump(EXCEPTION_POINTERS *exPtrs); - - /// - /// Next members relates to stack tracing - /// - static bool symEngineInitialized; - static Lock dbgHelpLock; - + static void SaveMiniDump(EXCEPTION_POINTERS *exPtrs); static xr_vector BuildStackTrace(PCONTEXT threadCtx, u16 maxFramesCount); static bool GetNextStackFrameString(LPSTACKFRAME stackFrame, PCONTEXT threadCtx, xr_string &frameStr); static bool InitializeSymbolEngine();