X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=inline;f=src%2Ffreeglut_internal.h;h=ea311b6be9014a8d9ade3785e0548c2004d5bc65;hb=fbc36ed71c03ab6aa7b06919d57abfe12b471e18;hp=f74b71c2d7e33f6825fcf0f12257f618cdc7424c;hpb=6af9cb78643b6b461c8886cb1ec6f935c8107429;p=freeglut diff --git a/src/freeglut_internal.h b/src/freeglut_internal.h index f74b71c..ea311b6 100644 --- a/src/freeglut_internal.h +++ b/src/freeglut_internal.h @@ -389,13 +389,14 @@ struct tagSFG_WindowState * */ #define INVOKE_WCB(window,cbname,arg_list) \ +do \ { \ if( FETCH_WCB( window, cbname ) ) \ { \ fgSetWindow( &window ); \ FETCH_WCB( window, cbname ) arg_list; \ } \ -} +} while( 0 ) /* * The window callbacks the user can supply us with. Should be kept portable.