mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
only include the easylogging++ stack trace code when needed
This commit is contained in:
parent
81b04cfa88
commit
da0fd71d3e
2 changed files with 7 additions and 4 deletions
8
external/easylogging++/ea_config.h
vendored
8
external/easylogging++/ea_config.h
vendored
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
#define ELPP_THREAD_SAFE
|
#define ELPP_THREAD_SAFE
|
||||||
#define ELPP_DEFAULT_LOG_FILE ""
|
#define ELPP_DEFAULT_LOG_FILE ""
|
||||||
#if !defined __GNUC__ || defined __MINGW32__ || defined __MINGW64__ || defined __ANDROID__
|
|
||||||
#else
|
|
||||||
#define ELPP_FEATURE_CRASH_LOG 1
|
|
||||||
#endif
|
|
||||||
#define ELPP_DISABLE_DEFAULT_CRASH_HANDLING
|
#define ELPP_DISABLE_DEFAULT_CRASH_HANDLING
|
||||||
#define ELPP_NO_CHECK_MACROS
|
#define ELPP_NO_CHECK_MACROS
|
||||||
#define ELPP_WINSOCK2
|
#define ELPP_WINSOCK2
|
||||||
#define ELPP_NO_DEBUG_MACROS
|
#define ELPP_NO_DEBUG_MACROS
|
||||||
|
|
||||||
|
#ifdef EASYLOGGING_CC
|
||||||
|
#define ELPP_FEATURE_CRASH_LOG
|
||||||
|
#endif
|
||||||
|
|
|
@ -28,7 +28,10 @@
|
||||||
|
|
||||||
#if !defined __GNUC__ || defined __MINGW32__ || defined __MINGW64__ || defined __ANDROID__
|
#if !defined __GNUC__ || defined __MINGW32__ || defined __MINGW64__ || defined __ANDROID__
|
||||||
#define USE_UNWIND
|
#define USE_UNWIND
|
||||||
|
#else
|
||||||
|
#define ELPP_FEATURE_CRASH_LOG 1
|
||||||
#endif
|
#endif
|
||||||
|
#include "easylogging++/easylogging++.h"
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#ifdef USE_UNWIND
|
#ifdef USE_UNWIND
|
||||||
|
|
Loading…
Reference in a new issue