ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.pod
(Generate patch)

Comparing libev/ev.pod (file contents):
Revision 1.454 by root, Tue Jun 25 05:17:50 2019 UTC vs.
Revision 1.455 by root, Wed Jun 26 00:01:46 2019 UTC

159When libev detects a usage error such as a negative timer interval, then 159When libev detects a usage error such as a negative timer interval, then
160it will print a diagnostic message and abort (via the C<assert> mechanism, 160it will print a diagnostic message and abort (via the C<assert> mechanism,
161so C<NDEBUG> will disable this checking): these are programming errors in 161so C<NDEBUG> will disable this checking): these are programming errors in
162the libev caller and need to be fixed there. 162the libev caller and need to be fixed there.
163 163
164Via the C<EV_FREQUENT> macro you can compile in and/or enable extensive
165consistency checking code inside libev that can be used to check for
166internal inconsistencies, suually caused by application bugs.
167
164Libev also has a few internal error-checking C<assert>ions, and also has 168Libev also has a few internal error-checking C<assert>ions. These do not
165extensive consistency checking code. These do not trigger under normal
166circumstances, as they indicate either a bug in libev or worse. 169trigger under normal circumstances, as they indicate either a bug in libev
170or worse.
167 171
168 172
169=head1 GLOBAL FUNCTIONS 173=head1 GLOBAL FUNCTIONS
170 174
171These functions can be called anytime, even before initialising the 175These functions can be called anytime, even before initialising the
4973called. If set to C<2>, then the internal verification code will be 4977called. If set to C<2>, then the internal verification code will be
4974called once per loop, which can slow down libev. If set to C<3>, then the 4978called once per loop, which can slow down libev. If set to C<3>, then the
4975verification code will be called very frequently, which will slow down 4979verification code will be called very frequently, which will slow down
4976libev considerably. 4980libev considerably.
4977 4981
4982Verification errors are reported via C's C<assert> mechanism, so if you
4983disable that (e.g. by defining C<NDEBUG>) then no errors will be reported.
4984
4978The default is C<1>, unless C<EV_FEATURES> overrides it, in which case it 4985The default is C<1>, unless C<EV_FEATURES> overrides it, in which case it
4979will be C<0>. 4986will be C<0>.
4980 4987
4981=item EV_COMMON 4988=item EV_COMMON
4982 4989

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines