diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-26 20:00:08 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-26 20:00:08 +0000 |
commit | 37c3456d70b343588acf09b38b6dde6e9745b2f8 (patch) | |
tree | 4b9e527ab5e16ee2b604caf983cdf85082620fb0 /log-internal.h | |
parent | a8267663de2feb27051682cb51f9596f59613e5f (diff) | |
download | libevent-37c3456d70b343588acf09b38b6dde6e9745b2f8.tar.gz |
Add an EVUTIL_ASSERT() to replace our calls to assert().
The big difference here is that EVUTIL_ASSERT() passes its message on
via event_errx() before aborting, so that the application has a prayer
of noticing and recording it.
svn:r1463
Diffstat (limited to 'log-internal.h')
-rw-r--r-- | log-internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/log-internal.h b/log-internal.h index 6468f08b..51e65516 100644 --- a/log-internal.h +++ b/log-internal.h @@ -33,6 +33,8 @@ #define EV_CHECK_FMT(a,b) #endif +#define _EVENT_ERR_ABORT 0xdeaddead + void event_err(int eval, const char *fmt, ...) EV_CHECK_FMT(2,3); void event_warn(const char *fmt, ...) EV_CHECK_FMT(1,2); void event_sock_err(int eval, int sock, const char *fmt, ...) EV_CHECK_FMT(3,4); |