diff options
author | Roger Dingledine <arma@torproject.org> | 2005-04-26 18:52:16 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2005-04-26 18:52:16 +0000 |
commit | 509405a5f7643f94933ae7feb0a2788a73abd801 (patch) | |
tree | 7732760a74a902c247f746ebc52ccb97e54dc329 /src/common/util.h | |
parent | 5e86e87124e643108c827366daac878e708d935d (diff) | |
download | tor-509405a5f7643f94933ae7feb0a2788a73abd801.tar tor-509405a5f7643f94933ae7feb0a2788a73abd801.tar.gz |
clean up this TOR_FRAGILE business
svn:r4116
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h index b3262d87a..31196085c 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -23,7 +23,7 @@ #include <time.h> #endif -/** Replace assert() with a variant that sends failures to the log before +/* Replace assert() with a variant that sends failures to the log before * calling assert() normally. */ #ifdef NDEBUG @@ -47,6 +47,11 @@ } } while (0) #endif +/** Define this if you want Tor to crash when any problem comes up, + * so you can get a coredump and track things down. */ +// #define tor_fragile_assert() tor_assert(0) +#define tor_fragile_assert() + /* Memory management */ void *_tor_malloc(const char *file, const int line, size_t size); void *_tor_malloc_zero(const char *file, const int line, size_t size); |