Skip to content

Commit

Permalink
Reformat source 2
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoAnomaly committed Mar 15, 2018
1 parent d253625 commit 9608825
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/xrCore/xrDebug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -77,20 +75,15 @@ class XRCORE_API xrDebug
static void DoExit(const std::string &message);

static void LogStackTrace(const char *header);
static xr_vector<xr_string> BuildStackTrace(u16 maxFramesCount = MaxFramesCountDefault);
static xr_vector<xr_string> 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<xr_string> BuildStackTrace(PCONTEXT threadCtx, u16 maxFramesCount);
static bool GetNextStackFrameString(LPSTACKFRAME stackFrame, PCONTEXT threadCtx, xr_string &frameStr);
static bool InitializeSymbolEngine();
Expand Down

0 comments on commit 9608825

Please sign in to comment.