]> git.tdb.fi Git - gldbg.git/blobdiff - source/glprint.funcs.t
Fix things for 64-bit systems
[gldbg.git] / source / glprint.funcs.t
index b2fa11977580eefe8b7616e73ba7aaeac4e7f744..111748e91e3f546c9e189bd70f74971d5f5134a6 100644 (file)
@@ -1,4 +1,3 @@
-# $Id$
 w('static void print_%s(void *user_data', func.name)
 if ret.ctype!="void":
        w(', %s ret', ret.ctype)
@@ -39,7 +38,10 @@ for p in params+[ret]:
                        elif p.type=="TextureComponentCount":
                                w(', print_internal_format(%s)', p.name)
                        elif len(p.io)>=3 and p.io[2]:
-                               w(', %s(%s, "%s")', p.io[2], p.name, p.type)
+                               if p.io[2][0]=='(':
+                                       w(', %s%s', p.io[2], p.name)
+                               else:
+                                       w(', %s(%s, "%s")', p.io[2], p.name, p.type)
                        else:
                                w(', %s', p.name)
                elif p.kind=="reference" and not p.io: