Commit 8755dc62 authored by Tom Niget's avatar Tom Niget

Include sys by default, for argv filling

parent 3b3d5c13
......@@ -11,6 +11,7 @@ class FileVisitor(BlockVisitor):
def visit_Module(self, node: ast.Module) -> Iterable[str]:
stmt: ast.AST
yield "#include <python/builtins.hpp>"
yield "#include <python/sys.hpp>"
visitor = ModuleVisitor(self.scope)
code = [line for stmt in node.body for line in visitor.visit(stmt)]
yield from visitor.includes
......
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