[or-cvs] clean up this TOR_FRAGILE business
Roger Dingledine
arma at seul.org
Tue Apr 26 18:52:16 UTC 2005
Update of /home2/or/cvsroot/tor/src/common
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/common
Modified Files:
util.h
Log Message:
clean up this TOR_FRAGILE business
Index: util.h
===================================================================
RCS file: /home2/or/cvsroot/tor/src/common/util.h,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- util.h 6 Apr 2005 19:07:35 -0000 1.132
+++ util.h 26 Apr 2005 18:52:14 -0000 1.133
@@ -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);
More information about the tor-commits
mailing list