summaryrefslogtreecommitdiff
path: root/src/common/util_bug.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-04-12 10:10:44 -0400
committerNick Mathewson <nickm@torproject.org>2016-04-14 16:25:06 -0400
commit532820b11c9d0566b45b3dd19f01cf3e16d984ef (patch)
tree538a0286a23c25ed22fcd77b64750c471d3a7b05 /src/common/util_bug.c
parenta885271c08d2337b35c203c0b27509d0aa32dbf6 (diff)
downloadtor-532820b11c9d0566b45b3dd19f01cf3e16d984ef.tar.gz
tor-532820b11c9d0566b45b3dd19f01cf3e16d984ef.zip
Add a BUG macro for usage in if checks.
Diffstat (limited to 'src/common/util_bug.c')
-rw-r--r--src/common/util_bug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util_bug.c b/src/common/util_bug.c
index 606c665163..e3e1d6df90 100644
--- a/src/common/util_bug.c
+++ b/src/common/util_bug.c
@@ -26,7 +26,7 @@ tor_assertion_failed_(const char *fname, unsigned int line,
log_backtrace(LOG_ERR, LD_BUG, buf);
}
-
+/** Helper for tor_assert_nonfatal: report the assertion failure. */
void
tor_bug_occurred_(const char *fname, unsigned int line,
const char *func, const char *expr,
@@ -50,3 +50,4 @@ tor_bug_occurred_(const char *fname, unsigned int line,
}
log_backtrace(LOG_WARN, LD_BUG, buf);
}
+