summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Changes2
-rw-r--r--configure.ac2
-rw-r--r--ev.c18
3 files changed, 15 insertions, 7 deletions
diff --git a/Changes b/Changes
index 939db5c..604168b 100644
--- a/Changes
+++ b/Changes
@@ -18,6 +18,8 @@ Revision history for libev, a high-performance and full-featured event loop.
- add portability requirements section.
- fix manpage headers etc.
- normalise WSA error codes to lower range on windows.
+ - start some (internal only) consistency check code that
+ can be called frequently to catch bugs.
3.31 Wed Apr 16 20:45:04 CEST 2008
- added last minute fix for ev_poll.c by Brandon Black.
diff --git a/configure.ac b/configure.ac
index 4d2593a..4d5188c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
AC_INIT
AC_CONFIG_SRCDIR([ev_epoll.c])
-AM_INIT_AUTOMAKE(libev,3.4)
+AM_INIT_AUTOMAKE(libev,3.41)
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE
diff --git a/ev.c b/ev.c
index 53828e2..b0ab266 100644
--- a/ev.c
+++ b/ev.c
@@ -237,6 +237,12 @@ extern "C" {
# endif
#endif
+#if 0 /* debugging */
+# define EV_VERIFY 1
+# define EV_USE_4HEAP 1
+# define EV_HEAP_CACHE_AT 1
+#endif
+
#ifndef EV_USE_4HEAP
# define EV_USE_4HEAP !EV_MINIMAL
#endif
@@ -290,12 +296,12 @@ int eventfd (unsigned int initval, int flags);
/**/
-/* undefined or zero: no verification done or available */
-/* 1 or higher: ev_loop_verify function available */
-/* 2 or higher: ev_loop_verify is called frequently */
-#define EV_VERIFY 1
-
-#if EV_VERIFY > 1
+/* EV_VERIFY: enable internal consistency checks
+ * undefined or zero: no verification done or available
+ * 1 or higher: ev_loop_verify function available
+ * 2 or higher: ev_loop_verify is called frequently
+ */
+#if EV_VERIFY >= 1
# define EV_FREQUENT_CHECK ev_loop_verify (EV_A)
#else
# define EV_FREQUENT_CHECK do { } while (0)