summaryrefslogtreecommitdiff
path: root/src/mesa/main/enums.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/enums.h')
-rw-r--r--src/mesa/main/enums.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/main/enums.h b/src/mesa/main/enums.h
index ff59233296..1e7b86e3a0 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