mesa: add KHR_no_error support to glBindBufferOffsetEXT()
[mesa.git] / src / mapi / glapi / gen / gl_enums.py
index 62cc1b363008c49ec7cdd9a2ae5531ae84f0b249..768a54a3a6aecc0a4c963ae87b6d180d5939bbf6 100644 (file)
@@ -1,4 +1,3 @@
-#!/usr/bin/python2
 
 # (C) Copyright Zack Rusin 2005. All Rights Reserved.
 # Copyright (C) 2015 Intel Corporation
@@ -83,7 +82,12 @@ static int compar_nr( const int *a, enum_elt *b )
 
 static char token_tmp[20];
 
-const char *_mesa_enum_to_string( int nr )
+/**
+ * This function always returns a string. If the number is a valid enum, it
+ * returns the enum name. Otherwise, it returns a numeric string.
+ */
+const char *
+_mesa_enum_to_string(int nr)
 {
    enum_elt *elt;