diff options
author | root <root> | 2010-03-16 00:26:41 +0000 |
---|---|---|
committer | root <root> | 2010-03-16 00:26:41 +0000 |
commit | f66f93858a4f29964c38f79765c17dea8fc394ca (patch) | |
tree | 2ee7036efd492aa4c97192c258f8bf63c6fd75b3 | |
parent | 42a515683c8434c476de42b87c0f327e459810dc (diff) |
let the user decide about asserts
-rw-r--r-- | ev.h | 5 | ||||
-rw-r--r-- | ev.pod | 8 | ||||
-rw-r--r-- | ev_vars.h | 2 |
3 files changed, 4 insertions, 11 deletions
@@ -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 @@ -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 @@ -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 */ |