home *** CD-ROM | disk | FTP | other *** search
- /*-------------------------------------------------------------------------
-
- Modified from original source by CS 488.
- Copyright (c) Ivan Bowman, 1995. All rights reserved.
- This code has been submitted for CS 488.
-
- Ivan Bowman 90037932 itbowman@descartes
-
- src/defines.h -- header file for general definitions
-
- Modified By Reason
- -------- -- ------
- ??-???-?? CS 488 Initial implementation
- 18-dec-94 Ivan Bowman Modified for assignment one
- 28-dec-94 Ivan Bowman Added Events, Epsilon for assignment two
-
- -------------------------------------------------------------------------*/
-
- #ifndef _GRDEFINES_H
- #define _GRDEFINES_H
-
- #define grTRUE 1
- #define grFALSE 0
- #define grBoolean int /* boolean values */
-
- #define grEPSILON 0.000001 /* epsilon for graphics */
-
- typedef unsigned uint; /* unsigned integer */
-
- typedef struct grPoint { /* STRUCTURE TO REPRESENT POINT */
- float x, y; /* -- x/y position */
- } grPoint;
-
- extern void grError( const char * );
-
- /*
- * Debugging levels:
- */
-
- #define grDBG_NONE 0x0 /* no debugging */
- #define grDBG_ASSERTIONS 0x1 /* turn assertions on */
- #define grDBG_ALL 0xffff /* all debugging info on */
-
- #if !defined( DEBUG )
- # define DEBUG grDBG_NONE
- #endif
-
- #if (DEBUG & grDBG_ASSERTIONS)
- extern void grAssertion( grBoolean expr, char * ex_str, char * fl, long ln );
- # define grAssert( x ) ((x)?(void)0:grAssertion( 0, #x, __FILE__, __LINE__ )
- #else
- # define grAssert(__ignore) ((void)0)
- #endif
-
- #endif /* _GRDEFINES_H */
-