From 6dc85575000127630489b407c50a4b3ea87c9acb Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 17 Jul 2003 13:43:59 +0000 Subject: Merge Jose's documentation and core Mesa changes from embedded branch --- src/mesa/main/enums.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/mesa/main/enums.h') diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h index ff59233..1e7b86e 100644 --- a/src/mesa/main/enums.h +++ b/src/mesa/main/enums.h @@ -1,3 +1,12 @@ +/** + * \file enums.h + * Enumeration name/number lookup functions. + * + * \if subset + * (No-op) + * + * \endif + */ /* * Mesa 3-D graphics library @@ -27,7 +36,20 @@ #ifndef _ENUMS_H_ #define _ENUMS_H_ + +#if _HAVE_FULL_GL + extern const char *_mesa_lookup_enum_by_nr( int nr ); extern int _mesa_lookup_enum_by_name( const char *symbol ); +#else + +/** No-op */ +#define _mesa_lookup_enum_by_name( s ) 0 + +/** No-op */ +#define _mesa_lookup_enum_by_nr( n ) "unknown" + +#endif + #endif -- cgit v1.1