From c5ec32f6201d9043471ef816a16a93fa0c4108fb Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 29 Aug 2013 21:52:33 +0200 Subject: [PATCH] optimize __debug__ flag --- Cython/Compiler/Builtin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cython/Compiler/Builtin.py b/Cython/Compiler/Builtin.py index a66ef20..2139db8 100644 --- a/Cython/Compiler/Builtin.py +++ b/Cython/Compiler/Builtin.py @@ -403,6 +403,9 @@ def init_builtins(): init_builtin_structs() init_builtin_funcs() init_builtin_types() + builtin_scope.declare_var( + '__debug__', PyrexTypes.c_const_type(PyrexTypes.c_bint_type), + pos=None, cname='(!Py_OptimizeFlag)', is_cdef=True) global list_type, tuple_type, dict_type, set_type, frozenset_type global bytes_type, str_type, unicode_type global float_type, bool_type, type_type, complex_type -- 2.7.4