- if len(p.io)>=3 and p.io[2]:
- w(', %s(%s, "%s")', p.io[2], p.name, p.type)
+ if pname and p.name=="param" and p.base_ctype=="GLint":
+ w(', print_parameter(%s, %s)', pname.name, p.name)
+ elif p.type=="TextureComponentCount":
+ w(', print_internal_format(%s)', p.name)
+ elif len(p.io)>=3 and p.io[2]:
+ 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)