Merge CGThing.declare and CGThing.define.

This distincion is carried over from the C++ codegen, but it has no meaning
in Rust.
This commit is contained in:
Ms2ger 2014-03-11 13:34:05 +01:00
parent 8c1f6bc72d
commit dd160b6392
3 changed files with 62 additions and 138 deletions

View file

@ -21,9 +21,7 @@ def generate_file(config, name):
filename = name + '.rs'
root = getattr(GlobalGenRoots, name)(config)
code = root.declare()
root2 = getattr(GlobalGenRoots, name)(config)
code += root2.define()
code = root.define()
if replaceFileIfChanged(filename, code):
print "Generating %s" % (filename)