diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2015-06-06 15:09:49 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2015-06-06 15:09:49 +0200 |
commit | e94bf9008fd2359870b036d8322136fcc600582c (patch) | |
tree | 802707ff08c51ec5aa9e9ad9168ec180e910a2a8 /Cython/Compiler/ModuleNode.py | |
parent | 96aafb0820285b1904fdc36d11ea75bf12c1c77d (diff) | |
download | cython-e94bf9008fd2359870b036d8322136fcc600582c.tar.gz |
separate trace declarations from initialisation to fix "declaration after code" C compiler error
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 48a33e121..ce592b1d4 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2053,7 +2053,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.put_declare_refcount_context() if profile or linetrace: - tempdecl_code.put_trace_declarations(None) + tempdecl_code.put_trace_declarations() + code.put_trace_frame_init() code.putln("#if CYTHON_REFNANNY") code.putln("__Pyx_RefNanny = __Pyx_RefNannyImportAPI(\"refnanny\");") |