fix double initialization of the main section code sink
This commit is contained in:
1 parent
2b469ec4e1
commit
ef7e4f5bf8
1 file changed
+1
@@ -134,6 +134,7 @@ class _MultiSectionSinkManager(_SinkManager):
|
||||
self.multi_section_factory.get_main_code_sink().writeln(
|
||||
"#include %s" % self.multi_section_factory.get_common_header_include())
|
||||
self._already_initialized_sections = {}
|
||||
self._already_initialized_sections['__main__'] = True
|
||||
|
||||
def get_code_sink_for_wrapper(self, wrapper):
|
||||
header_sink = self.multi_section_factory.get_common_header_code_sink()
|
||||
|
||||
Reference in new issue
Block a user