print >> swig, '%%template(EnumValue%s) sigrok::EnumValue<sigrok::%s, enum %s>;' % (
classname, classname, enum_name)
+ # Apply any language-specific extras.
+ print >> swig, '%%enumextras(%s);' % classname
+
# Declare additional attributes if present
filename = os.path.join(dirname, "%s_methods.i" % classname)
if os.path.exists(filename):