handle error better

This commit is contained in:
rdb 2012-08-06 09:40:54 +00:00
parent 37cd123d37
commit 07e3f33fd2

View File

@ -129,6 +129,7 @@ def processType(handle, type):
classtype = "union"
else:
print "I don't know what type %s is" % typename
return
if len(derivations) > 0:
print >>handle, "%s %s : public %s {" % (classtype, typename, ", public ".join(derivations))