diff options
author | Keith Whitwell <[email protected]> | 2003-07-17 13:43:59 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2003-07-17 13:43:59 +0000 |
commit | 6dc85575000127630489b407c50a4b3ea87c9acb (patch) | |
tree | c79b24b7059577caf8201eeb7a42a6890721f52b /src/mesa/main/enums.h | |
parent | 44c699949ac09459771304a8aec8f2fc622057fb (diff) |
Merge Jose's documentation and core Mesa changes from embedded branch
Diffstat (limited to 'src/mesa/main/enums.h')
-rw-r--r-- | src/mesa/main/enums.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h index ff59233296a..1e7b86e3a09 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 |