Changeset 2169
- Timestamp:
- 28/05/2008 13:13:52 (4 years ago)
- File:
-
- 1 edited
-
box/trunk/lib/common/Box.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/lib/common/Box.h
r2127 r2169 18 18 #include "BoxPlatform.h" 19 19 20 // uncomment this line to enable full memory leak finding on all malloc-ed blocks (at least, ones used by the STL) 20 // uncomment this line to enable full memory leak finding on all 21 // malloc-ed blocks (at least, ones used by the STL) 21 22 //#define MEMLEAKFINDER_FULL_MALLOC_MONITORING 22 23 23 #ifndef NDEBUG 24 #ifdef HAVE_EXECINFO_H 25 #define SHOW_BACKTRACE_ON_EXCEPTION 26 # endif24 // Show backtraces on exceptions in release builds until further notice 25 // (they are only logged at TRACE level anyway) 26 #ifdef HAVE_EXECINFO_H 27 #define SHOW_BACKTRACE_ON_EXCEPTION 27 28 #endif 28 29 … … 44 45 #define ASSERT(cond) {if(!(cond)) {BoxDebugAssertFailed(#cond, __FILE__, __LINE__); THROW_EXCEPTION(CommonException, AssertFailed)}} 45 46 46 // Note that syslog tracing is independent of BoxDebugTraceOn, but stdout tracing is not 47 // Note that syslog tracing is independent of BoxDebugTraceOn, 48 // but stdout tracing is not 47 49 extern bool BoxDebugTraceToSyslog; 48 50 #define TRACE_TO_SYSLOG(x) {BoxDebugTraceToSyslog = x;}
Note: See TracChangeset
for help on using the changeset viewer.
