File tree 2 files changed +8
-12
lines changed
2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 213
213
// / Disable to unsuppress warnings.
214
214
#define HAVE_SUPPRESSION
215
215
216
- // / Disable noexcept to capture stack trace.
217
- // //#define HAVE_NOEXCEPT
218
-
219
216
// / Disable to emit all suppressed warnings.
220
217
#define HAVE_WARNINGS
221
218
Original file line number Diff line number Diff line change 60
60
#define BC_DEBUG_ONLY (expression ) expression
61
61
#endif
62
62
63
+ #if defined(NDEBUG)
64
+ #define NOEXCEPT
65
+ #define THROWS
66
+ #else
67
+ #define NOEXCEPT noexcept
68
+ #define THROWS noexcept (false )
69
+ #endif
70
+
63
71
// / Messages.
64
72
// / ---------------------------------------------------------------------------
65
73
189
197
// / Workarounds for C++ noncompliance.
190
198
// / ---------------------------------------------------------------------------
191
199
192
- // / C++11 (full)
193
- #if defined(HAVE_NOEXCEPT)
194
- #define NOEXCEPT noexcept
195
- #define THROWS noexcept (false )
196
- #else
197
- #define NOEXCEPT
198
- #define THROWS
199
- #endif
200
-
201
200
// / C++14 (full)
202
201
#if defined(HAVE_DEPRECATED)
203
202
#define DEPRECATED [[deprecated]]
You can’t perform that action at this time.
0 commit comments