Removed unneeded line optimization for INVOKE_WCB macro
This commit is contained in:
parent
60a437b3b8
commit
363ed17d99
@ -666,7 +666,6 @@ do \
|
|||||||
* current window.
|
* current window.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#if TARGET_HOST_MS_WINDOWS && !defined(_WIN32_WCE) /* FIXME: also WinCE? */
|
|
||||||
#define INVOKE_WCB(window,cbname,arg_list) \
|
#define INVOKE_WCB(window,cbname,arg_list) \
|
||||||
do \
|
do \
|
||||||
{ \
|
{ \
|
||||||
@ -678,18 +677,6 @@ do \
|
|||||||
func EXPAND_WCB( cbname )(( arg_list, userData )); \
|
func EXPAND_WCB( cbname )(( arg_list, userData )); \
|
||||||
} \
|
} \
|
||||||
} while( 0 )
|
} while( 0 )
|
||||||
#else
|
|
||||||
#define INVOKE_WCB(window,cbname,arg_list) \
|
|
||||||
do \
|
|
||||||
{ \
|
|
||||||
if( FETCH_WCB( window, cbname ) ) \
|
|
||||||
{ \
|
|
||||||
fgSetWindow( &window ); \
|
|
||||||
FGCBUserData userData = FETCH_USER_DATA_WCB( window, cbname ); \
|
|
||||||
((FGCB ## cbname ## UC)FETCH_WCB( window, cbname )) EXPAND_WCB( cbname )(( arg_list, userData )); \
|
|
||||||
} \
|
|
||||||
} while( 0 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The window callbacks the user can supply us with. Should be kept portable.
|
* The window callbacks the user can supply us with. Should be kept portable.
|
||||||
|
Reference in New Issue
Block a user