/*
* All of the callbacks setting methods can be generalized to this:
*/
-#define SET_CALLBACK(a) \
- if( fgStructure.Window == NULL ) \
- return; \
- SET_WCB( ( *( fgStructure.Window ) ), a, callback );
+#define SET_CALLBACK(a) \
+do \
+{ \
+ if( fgStructure.Window == NULL ) \
+ return; \
+ SET_WCB( ( *( fgStructure.Window ) ), a, callback ); \
+} while( 0 )
/*
* Sets the Display callback for the current window
{ \
if( FETCH_WCB( window, cbname ) != func ) \
(((window).CallBacks[CB_ ## cbname]) = (void *) func); \
-} while( 0 ) \
+} while( 0 )
/*
* FETCH_WCB() is used as: