Hi:
I'm new in libev. When I read the header ev.h, I found ev_set_cb is defined
as
#define ev_set_cb(ev,cb_) (ev_cb_ (ev) = (cb_), memmove(&((ev_watcher
*)(ev))->cb, &ev_cb_ (ev), sizeof (ev_cb_ (ev)))). I' m curious about the
reason why a redundant memmove is needed. And I found that the memmove
action was imported in version 4.20. Could you help me with my confusion?
Best,
Yuan
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/libev

Reply via email to