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: