… | |
… | |
46 | # define EV_CPP(x) |
46 | # define EV_CPP(x) |
47 | #endif |
47 | #endif |
48 | |
48 | |
49 | #define EV_THROW EV_CPP(throw()) |
49 | #define EV_THROW EV_CPP(throw()) |
50 | |
50 | |
51 | /* apple's proprietary clang fork errors out with exception specifications */ |
|
|
52 | /* in all sorts of places, so let's not even bother with them */ |
|
|
53 | /* users are strongly advised to install clang or gcc */ |
|
|
54 | #if __APPLE__ && __clang__ |
|
|
55 | # undef EV_THROW |
|
|
56 | # define EV_THROW |
|
|
57 | #endif |
|
|
58 | |
|
|
59 | EV_CPP(extern "C" {) |
51 | EV_CPP(extern "C" {) |
60 | |
52 | |
61 | /*****************************************************************************/ |
53 | /*****************************************************************************/ |
62 | |
54 | |
63 | /* pre-4.0 compatibility */ |
55 | /* pre-4.0 compatibility */ |
… | |
… | |
666 | /* advanced stuff for threading etc. support, see docs */ |
658 | /* advanced stuff for threading etc. support, see docs */ |
667 | EV_API_DECL void ev_set_userdata (EV_P_ void *data) EV_THROW; |
659 | EV_API_DECL void ev_set_userdata (EV_P_ void *data) EV_THROW; |
668 | EV_API_DECL void *ev_userdata (EV_P) EV_THROW; |
660 | EV_API_DECL void *ev_userdata (EV_P) EV_THROW; |
669 | typedef void (*ev_loop_callback)(EV_P); |
661 | typedef void (*ev_loop_callback)(EV_P); |
670 | EV_API_DECL void ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW; |
662 | EV_API_DECL void ev_set_invoke_pending_cb (EV_P_ ev_loop_callback invoke_pending_cb) EV_THROW; |
671 | EV_API_DECL void ev_set_loop_release_cb (EV_P_ ev_loop_callback EV_THROW release, ev_loop_callback EV_THROW acquire) EV_THROW; |
663 | /* C++ doesn't allow the use of the ev_loop_callback typedef here, so we need to spell it out*/ |
|
|
664 | EV_API_DECL void ev_set_loop_release_cb (EV_P_ void (*release)(EV_P) EV_THROW, void (*acquire)(EV_P) EV_THROW) EV_THROW; |
672 | |
665 | |
673 | EV_API_DECL unsigned int ev_pending_count (EV_P) EV_THROW; /* number of pending events, if any */ |
666 | EV_API_DECL unsigned int ev_pending_count (EV_P) EV_THROW; /* number of pending events, if any */ |
674 | EV_API_DECL void ev_invoke_pending (EV_P); /* invoke all pending watchers */ |
667 | EV_API_DECL void ev_invoke_pending (EV_P); /* invoke all pending watchers */ |
675 | |
668 | |
676 | /* |
669 | /* |