typesafe_cb: fix example macro ordering in typesafe_cb_preargs documentation.
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 24 Sep 2011 04:31:19 +0000 (14:01 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 24 Sep 2011 04:31:19 +0000 (14:01 +0930)
ccan/typesafe_cb/typesafe_cb.h

index 3dddd501a3f8f00eaa5ad33ae6357776e24f9110..884314975eda5506f6eed3ef941ae7401dd21a3e 100644 (file)
  * Example:
  *     void _register_callback(void (*fn)(int, void *arg), void *arg);
  *     #define register_callback(fn, arg)                                 \
  * Example:
  *     void _register_callback(void (*fn)(int, void *arg), void *arg);
  *     #define register_callback(fn, arg)                                 \
- *             _register_callback(typesafe_cb_preargs(void, (fn), void *, \
- *                                (arg), int),                            \
+ *             _register_callback(typesafe_cb_preargs(void, void *,       \
+ *                                (fn), (arg), int),                      \
  *                                (arg))
  */
 #define typesafe_cb_preargs(rtype, atype, fn, arg, ...)                        \
  *                                (arg))
  */
 #define typesafe_cb_preargs(rtype, atype, fn, arg, ...)                        \