diff options
author | Brian Paul <[email protected]> | 2000-10-29 18:23:16 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-10-29 18:23:16 +0000 |
commit | ebb248aa5c018dc676d389221d76ed329059789e (patch) | |
tree | f393d59462e03f10a52076814a1aaea06abefc84 /src/mesa/main/config.h | |
parent | 699bc7b73d2fede77d3290f66c1ec355afd0373e (diff) |
more minor header file re-org (moved CONST, ASSERT, INLINE to config.h)
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 |