File tree Expand file tree Collapse file tree 3 files changed +20
-24
lines changed Expand file tree Collapse file tree 3 files changed +20
-24
lines changed Original file line number Diff line number Diff line change 246
246
// XDG_DATA_HOME or XDG_DATA_DIRS to include the --datadir.
247
247
#mesondefine CUSTOM_DATADIR
248
248
249
- /* Loguru-related defines
250
- */
251
-
252
- // Prevent loguru from parsing command-line arguments with
253
- // with the hosts's locale-applied, because this can foul up
254
- // ncurses. (DOSBox also doesn't have foreign-language arguments).
255
- //
256
- #define LOGURU_USE_LOCALE 0
257
-
258
- // Redefine “assert” to call Loguru version (!NDEBUG only).
259
- #define LOGURU_REDEFINE_ASSERT 1
260
-
261
249
#endif
Original file line number Diff line number Diff line change
1
+ # Enable Loguru stack traces if supported
2
+ stacktrace_headers = [' cxxabi.h' , ' dlfcn.h' , ' execinfo.h' ]
3
+
4
+ all_stacktrace_headers_found = true
5
+
6
+ foreach header : stacktrace_headers
7
+ if not cxx.has_header(header)
8
+ all_stacktrace_headers_found = false
9
+ endif
10
+ endforeach
11
+
12
+ if all_stacktrace_headers_found
13
+ add_project_arguments (' -DLOGURU_STACKTRACES=1' , language : ' cpp' )
14
+ endif
15
+
16
+ # Prevent loguru from parsing command-line arguments with
17
+ # the hosts's locale-applied, because this can foul up
18
+ # ncurses. (DOSBox also doesn't have foreign-language arguments).
19
+ add_project_arguments (' -DLOGURU_USE_LOCALE=0' , language : ' cpp' )
20
+
1
21
libloguru = static_library (
2
22
' loguru' ,
3
23
' loguru.cpp' ,
Original file line number Diff line number Diff line change 122
122
// On Windows, this path is not customizeable, so it's left blank here.
123
123
//
124
124
#define CUSTOM_DATADIR " "
125
-
126
- /* Loguru-related defines
127
- */
128
-
129
- // Prevent loguru from parsing command-line arguments with
130
- // with the hosts's locale-applied, because this can foul up
131
- // ncurses. (DOSBox also doesn't have foreign-language arguments).
132
- //
133
- #define LOGURU_USE_LOCALE 0
134
-
135
- // Redefine “assert” to call Loguru version (!NDEBUG only).
136
- #define LOGURU_REDEFINE_ASSERT 1
You can’t perform that action at this time.
0 commit comments