From: Lisandro Dalcin Date: Fri, 26 Nov 2010 15:58:15 +0000 (-0300) Subject: rename PYREX_WITHOUT_ASSERTIONS -> CYTHON_WITHOUT_ASSERTIONS X-Git-Tag: 0.14.alpha0~56^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e25b292727fe7db0870708d94f246b4ce566efc;p=cython.git rename PYREX_WITHOUT_ASSERTIONS -> CYTHON_WITHOUT_ASSERTIONS --HG-- extra : rebase_source : 7fea7f050894df69b66a2bdb843ce1885ef7ef7a --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 5a843e96..b8f370f8 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -645,6 +645,11 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln("#include ") code.putln("#define %s" % Naming.api_guard_prefix + self.api_name(env)) self.generate_includes(env, cimported_modules, code) + code.putln("") + code.putln("#ifdef PYREX_WITHOUT_ASSERTIONS") + code.putln("#define CYTHON_WITHOUT_ASSERTIONS") + code.putln("#endif") + code.putln("") if env.directives['ccomplex']: code.putln("") code.putln("#if !defined(CYTHON_CCOMPLEX)") diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index b453a27b..10706766 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -4000,7 +4000,7 @@ class AssertStatNode(StatNode): gil_message = "Raising exception" def generate_execution_code(self, code): - code.putln("#ifndef PYREX_WITHOUT_ASSERTIONS") + code.putln("#ifndef CYTHON_WITHOUT_ASSERTIONS") self.cond.generate_evaluation_code(code) code.putln( "if (unlikely(!%s)) {" %