ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev++.h
(Generate patch)

Comparing libev/ev++.h (file contents):
Revision 1.15 by root, Wed Dec 5 00:09:35 2007 UTC vs.
Revision 1.16 by root, Fri Dec 7 20:13:08 2007 UTC

54 watcher *self = static_cast<watcher *>(w); 54 watcher *self = static_cast<watcher *>(w);
55 K *obj = static_cast<K *>(self->data); 55 K *obj = static_cast<K *>(self->data);
56 (obj->*method) (*self, revents); 56 (obj->*method) (*self, revents);
57 } 57 }
58 58
59 template<void (*function)(watcher &w, int)> 59 template<void (*function)(watcher &w, int), void *data = 0>
60 void set () 60 void set ()
61 { 61 {
62 set_ (0, function_thunk<function>); 62 set_ (data, function_thunk<function>);
63 } 63 }
64 64
65 template<void (*function)(watcher &w, int)> 65 template<void (*function)(watcher &w, int)>
66 static void function_thunk (EV_P_ ev_watcher *w, int revents) 66 static void function_thunk (EV_P_ ev_watcher *w, int revents)
67 { 67 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines