From ebb248aa5c018dc676d389221d76ed329059789e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 29 Oct 2000 18:23:16 +0000 Subject: more minor header file re-org (moved CONST, ASSERT, INLINE to config.h) --- src/mesa/main/config.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/config.h') 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 -- cgit v1.2.3