… | |
… | |
3921 | |
3921 | |
3922 | ... |
3922 | ... |
3923 | ev_set_syserr_cb (fatal_error); |
3923 | ev_set_syserr_cb (fatal_error); |
3924 | |
3924 | |
3925 | The only API functions that can currently throw exceptions are C<ev_run>, |
3925 | The only API functions that can currently throw exceptions are C<ev_run>, |
3926 | C<ev_inoke> and C<ev_invoke_pending>. |
3926 | C<ev_inoke>, C<ev_invoke_pending> and C<ev_loop_destroy> (the latter |
|
|
3927 | because it runs cleanup watchers). |
3927 | |
3928 | |
3928 | Throwing exceptions in watcher callbacks is only supported if libev itself |
3929 | Throwing exceptions in watcher callbacks is only supported if libev itself |
3929 | is compiled with a C++ compiler or your C and C++ environments allow |
3930 | is compiled with a C++ compiler or your C and C++ environments allow |
3930 | throwing exceptions through C libraries (most do). |
3931 | throwing exceptions through C libraries (most do). |
3931 | |
3932 | |