patch-src_common_util_h 890 B

1234567891011121314151617181920212223
  1. --- tor-0.2.1.20.orig/src/common/util.h 2009-06-19 08:13:53.000000000 +0200
  2. +++ tor-0.2.1.20/src/common/util.h 2009-12-03 23:47:21.000000000 +0100
  3. @@ -24,20 +24,6 @@
  4. #define O_TEXT 0
  5. #endif
  6. -/* Replace assert() with a variant that sends failures to the log before
  7. - * calling assert() normally.
  8. - */
  9. -#ifdef NDEBUG
  10. -/* Nobody should ever want to build with NDEBUG set. 99% of our asserts will
  11. - * be outside the critical path anyway, so it's silly to disable bug-checking
  12. - * throughout the entire program just because a few asserts are slowing you
  13. - * down. Profile, optimize the critical path, and keep debugging on.
  14. - *
  15. - * And I'm not just saying that because some of our asserts check
  16. - * security-critical properties.
  17. - */
  18. -#error "Sorry; we don't support building with NDEBUG."
  19. -#endif
  20. /** Like assert(3), but send assertion failures to the log as well as to
  21. * stderr. */