Commit a3842d42 authored by Stefan Behnel's avatar Stefan Behnel

Prevent redefinition of assertions macro

parent c69b5aaa
...@@ -667,7 +667,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): ...@@ -667,7 +667,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln("#define %s" % Naming.api_guard_prefix + self.api_name(env)) code.putln("#define %s" % Naming.api_guard_prefix + self.api_name(env))
self.generate_includes(env, cimported_modules, code) self.generate_includes(env, cimported_modules, code)
code.putln("") code.putln("")
code.putln("#ifdef PYREX_WITHOUT_ASSERTIONS") code.putln("#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)")
code.putln("#define CYTHON_WITHOUT_ASSERTIONS") code.putln("#define CYTHON_WITHOUT_ASSERTIONS")
code.putln("#endif") code.putln("#endif")
code.putln("") code.putln("")
......
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