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