Commit 2e945c76 authored by Robert Bradshaw's avatar Robert Bradshaw

Put cimported includes first.

parent d5df4c24
......@@ -545,11 +545,14 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("#endif")
def generate_includes(self, env, cimported_modules, code):
includes = env.include_files[:]
includes = []
for module in cimported_modules:
for filename in module.include_files:
if filename not in includes:
includes.append(filename)
for filename in env.include_files[:]
if filename not in includes:
includes.append(filename)
for filename in includes:
code.putln('#include "%s"' % filename)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment