summaryrefslogtreecommitdiff
path: root/ev.h
diff options
context:
space:
mode:
authorroot <root>2010-10-22 06:09:26 +0000
committerroot <root>2010-10-22 06:09:26 +0000
commit52c5711a3ae60a1896be8dc62b32510e490d4ebb (patch)
tree415292290156ecefbd3e7bb23e035a555388430b /ev.h
parentdd0500884c780a5103d959f64b72fb81e566ddd6 (diff)
*** empty log message ***
Diffstat (limited to 'ev.h')
-rw-r--r--ev.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/ev.h b/ev.h
index b2157eb..2027789 100644
--- a/ev.h
+++ b/ev.h
@@ -156,15 +156,15 @@ typedef double ev_tstamp;
/* support multiple event loops? */
#if EV_MULTIPLICITY
struct ev_loop;
-# define EV_P struct ev_loop *loop
-# define EV_P_ EV_P,
-# define EV_A loop
-# define EV_A_ EV_A,
-# define EV_DEFAULT_UC ev_default_loop_uc ()
-# define EV_DEFAULT_UC_ EV_DEFAULT_UC,
-# define EV_DEFAULT ev_default_loop (0)
-# define EV_DEFAULT_ EV_DEFAULT,
-# define EV_PDEF EV_P EV_DEFARG (EV_DEFAULT_UC)
+# define EV_P struct ev_loop *loop /* a loop as sole parameter in a declaration */
+# define EV_P_ EV_P, /* a loop as first of multiple parameters */
+# define EV_A loop /* a loop as sole argument to a function call */
+# define EV_A_ EV_A, /* a loop as first of multiple arguments */
+# define EV_DEFAULT_UC ev_default_loop_uc () /* the default loop, if initialised, as sole arg */
+# define EV_DEFAULT_UC_ EV_DEFAULT_UC, /* the default loop as first of multiple arguments */
+# define EV_DEFAULT ev_default_loop (0) /* the default loop as sole arg */
+# define EV_DEFAULT_ EV_DEFAULT, /* the default loop as first of multiple arguments */
+# define EV_PDEF EV_P EV_DEFARG (EV_DEFAULT_UC) /* EV_P, but with default argument in C++ */
#else
# define EV_P void
# define EV_P_