X-Git-Url: https://git.llucax.com/software/libev.git/blobdiff_plain/c4977e2742acfd90d4c4abd068f1c9e284951ef5..62e079bb6850faefce26c3930818dba3659cbda8:/README.embed?ds=inline diff --git a/README.embed b/README.embed index 2980a96..815e8b4 100644 --- a/README.embed +++ b/README.embed @@ -172,11 +172,15 @@ PREPROCESSOR SYMBOLS EV_CB_DECLARE(type) EV_CB_INVOKE(watcher,revents) + ev_set_cb(ev,cb) Can be used to change the callback member declaration in each - watcher, and the way callbacks are invoked. Must expand to a struct - member definition and a statement, respectively. See the ev.v - header file for their default definitions. + watcher, and the way callbacks are invoked and set. Must expand + to a struct member definition and a statement, respectively. See + the ev.v header file for their default definitions. One possible + use for overriding these is to avoid the ev_loop pointer as first + argument in all cases, or to use method calls instead of plain + function calls in C++. EXAMPLES