* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <GL/freeglut.h>
#include "freeglut_internal.h"
-
/* -- INTERFACE FUNCTIONS -------------------------------------------------- */
/*
* 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
{
int glut_status = GLUT_VISIBLE;
+ FREEGLUT_INTERNAL_ERROR_EXIT_IF_NOT_INITIALISED ( "Visibility Callback" );
freeglut_return_if_fail( fgStructure.Window );
if( ( GLUT_HIDDEN == status ) || ( GLUT_FULLY_COVERED == status ) )