2 w('static void print_%s(void *user_data', func.name)
4 w(', %s ret', ret.ctype)
6 w(', %s %s', p.ctype, p.name)
9 wl(' GlPrintData *gpd = (GlPrintData *)user_data;')
10 w(' snprintf(gpd->buffer, gpd->bufsize, "%s(', func.name)
24 for p in params+[ret]:
26 if p.io and len(p.io)>=3 and p.io[2]:
27 f = p.io[2].split(':')
28 w(', %s(%s)', f[0], ", ".join(eval(x) for x in f[1:]))
33 :static void init_print(GlDecoder *dec)
35 wl(' dec->%s = print_%s;', func.name, func.name)