diff options
Diffstat (limited to 'src/mesa/main/config.h')
-rw-r--r-- | src/mesa/main/config.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h index a45f652a3d1..f727c141c1a 100644 --- a/src/mesa/main/config.h +++ b/src/mesa/main/config.h @@ -1,4 +1,4 @@ -/* $Id: config.h,v 1.22 2000/10/29 18:12:14 brianp Exp $ */ +/* $Id: config.h,v 1.23 2000/10/29 18:23:16 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -197,6 +197,10 @@ #define VB_SIZE (VB_MAX + VB_MAX_CLIPPED_VERTS) +/* + * Language/compiler stuff + */ + /* Some compilers don't like some of Mesa's const usage */ #ifdef NO_CONST # define CONST @@ -205,4 +209,21 @@ #endif +/* Function inlining */ +#if defined(__GNUC__) +# define INLINE __inline__ +#elif defined(__MSC__) +# define INLINE __inline +#else +# define INLINE +#endif + + +#ifdef DEBUG +# define ASSERT(X) assert(X) +#else +# define ASSERT(X) +#endif + + #endif |