t_string = ""
comma = ""
- for p in f:
+ for p in f.parameterIterator():
cast = ""
if p.is_pointer:
t = "%d"
t_string = t_string + comma + t
- p_string = p_string + comma + p.p_name
- o_string = o_string + comma + cast + p.p_name
+ p_string = p_string + comma + p.name
+ o_string = o_string + comma + cast + p.name
comma = ", "
*/
+#if defined( NAME )
#ifndef KEYWORD1
#define KEYWORD1
#endif
#define KEYWORD2
#endif
-#ifndef NAME
-#error NAME must be defined
-#endif
-
#ifndef DISPATCH
#error DISPATCH must be defined
#endif
#error RETURN_DISPATCH must be defined
#endif
-GLAPI void GLAPIENTRY gl__unused413(void); /* silence warning */
"""
return
def printInitDispatch(self):
print """
+#endif /* defined( NAME ) */
/*
* This is how a dispatch table can be initialized with all the functions
#error TABLE_ENTRY must be defined
#endif
-static void * DISPATCH_TABLE_NAME[] = {"""
+static _glapi_proc DISPATCH_TABLE_NAME[] = {"""
keys = self.functions.keys()
keys.sort()
for k in keys:
* We list the functions which are not otherwise used.
*/
#ifdef UNUSED_TABLE_NAME
-static const void * const UNUSED_TABLE_NAME[] = {"""
+static _glapi_proc UNUSED_TABLE_NAME[] = {"""
keys = self.functions.keys()
keys.sort()