Skip to content

Commit

Permalink
Tweak CCrashHandler indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
qaisjp committed Aug 8, 2018
1 parent 9aef1d5 commit 9469984
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Server/core/CCrashHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,25 @@
#include <execinfo.h>
#endif

// clang-format off
#ifndef WIN32
#ifdef __APPLE__
#include <curses.h>
#else
#include <ncursesw/curses.h>
#endif
extern "C" WINDOW* m_wndMenu;
extern "C" WINDOW* m_wndInput;
extern "C" bool g_bNoCurses;

extern "C" WINDOW* m_wndMenu;
extern "C" WINDOW* m_wndInput;
extern "C" bool g_bNoCurses;

#include <client/linux/handler/exception_handler.h>
bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, void* context, bool succeeded);
static SString ms_strDumpPathFilename;
bool DumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, void* context, bool succeeded);

static SString ms_strDumpPathFilename;
#endif
// clang-format on

static SString ms_strDumpPath;

#ifdef WIN32
Expand All @@ -53,6 +59,7 @@ void CCrashHandler::Init(const SString& strInServerPath)
#ifdef WIN32
SetCrashHandlerFilter(HandleExceptionGlobal);
#else

// Prepare initial dumpfile name
time_t pTime = time(NULL);
struct tm* tm = localtime(&pTime);
Expand Down

0 comments on commit 9469984

Please sign in to comment.