Commit df0047fa authored by Stefan Behnel's avatar Stefan Behnel

Fix FunctionState handling for module cleanup function.

parent 5243ecd7
......@@ -3071,6 +3071,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('static void %s(CYTHON_UNUSED PyObject *self) {' %
Naming.cleanup_cname)
code.enter_cfunc_scope(env)
if Options.generate_cleanup_code >= 2:
code.putln("/*--- Global cleanup code ---*/")
rev_entries = list(env.var_entries)
......
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