4 /** Collection of useful macros to assist in correctly wrapping and
5 mapping C callbacks to the C++ member functions.
8 #define C_GENERICCB(FN, METHOD) \
9 extern "C" void C_##FN##METHOD(FL_OBJECT * ob, long d) \
14 // Return CB's all seem to take a void* as the 2nd argument and return an int.
15 #define C_RETURNCB(FN, METHOD) \
16 extern "C" int C_##FN##METHOD(FL_FORM * ob, void * d) \
18 return FN::METHOD(ob, d); \
21 // The CB used by the preempive and post-object handlers.
22 #define C_PREPOSTHANDLER(FN, METHOD) \
23 extern "C" int C_##FN##METHOD(FL_OBJECT * ob, int event, \
24 FL_Coord mx, FL_Coord my, \
25 int key, void * xev) \
27 return FN::METHOD(ob, event, mx, my, key, xev); \