]> git.tdb.fi Git - gldbg.git/blobdiff - source/glwrap.funcs.t
Enable warnings and fix them
[gldbg.git] / source / glwrap.funcs.t
index fbba906909d5e803a3037a43a8d1c85c953d232e..547d53f1529d91fcaeaf766a45b99a2becfb8ce3 100644 (file)
@@ -15,10 +15,10 @@ if ret.ctype!='void':
 wl('orig(%s);', ", ".join([p.name for p in params]))
 wl('   begin_packet(FUNC_%s);', func.name.upper())
 if ret.ctype!='void':
-       wl('    write_%s(ret);', ret.io[0])
+       wl('    write_%s(ret);', ret.io[0].replace(' ', '_'))
 for p in params:
        if p.kind=="value":
-               wl('    write_%s(%s);', p.io[0], p.name)
+               wl('    write_%s(%s);', p.io[0].replace(' ', '_'), p.name)
        elif p.kind=="array" and p.io and p.io[0]=="string":
                wl('  write_string_array(%s, %s);', p.name, p.csize)
        elif p.csize: