summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2010-03-16 00:26:41 +0000
committerroot <root>2010-03-16 00:26:41 +0000
commitf66f93858a4f29964c38f79765c17dea8fc394ca (patch)
tree2ee7036efd492aa4c97192c258f8bf63c6fd75b3
parent42a515683c8434c476de42b87c0f327e459810dc (diff)
let the user decide about asserts
-rw-r--r--ev.h5
-rw-r--r--ev.pod8
-rw-r--r--ev_vars.h2
3 files changed, 4 insertions, 11 deletions
diff --git a/ev.h b/ev.h
index ab30c82..85bf9bd 100644
--- a/ev.h
+++ b/ev.h
@@ -126,11 +126,6 @@ extern "C" {
/*****************************************************************************/
-#if !EV_FEATURE_CODE && !defined (NDEBUG)
-# define NDEBUG 1
-# include <assert.h>
-#endif
-
typedef double ev_tstamp;
#ifndef EV_ATOMIC_T
diff --git a/ev.pod b/ev.pod
index e5a1391..3b1247a 100644
--- a/ev.pod
+++ b/ev.pod
@@ -3920,11 +3920,9 @@ Use larger code to speed up some operations.
Currently this is used to override some inlining decisions (enlarging the roughly
30% code size on amd64.
-Also disables C<assert>'s in the code, unless you define C<NDEBUG>
-explicitly to C<0>.
-
-Use of compiler flags such as C<-Os> with gcc that optimise for size are
-recommended when disabling this feature.
+When optimising for size, use of compiler flags such as C<-Os> with
+gcc recommended, as well as C<-DNDEBUG>, as libev contains a number of
+assertions.
=item C<2> - faster/larger data structures
diff --git a/ev_vars.h b/ev_vars.h
index da53ee8..e5f99e4 100644
--- a/ev_vars.h
+++ b/ev_vars.h
@@ -173,7 +173,7 @@ VARx(ev_io, sigfd_w)
VARx(sigset_t, sigfd_set)
#endif
-#if EV_MINIMAL < 2 || EV_GENWRAP
+#if EV_FEATURE_API || EV_GENWRAP
VARx(unsigned int, loop_count) /* total number of loop iterations/blocks */
VARx(unsigned int, loop_depth) /* #ev_loop enters - #ev_loop leaves */