fix annotation for generated Python function wrapper
authorStefan Behnel <stefan_ml@behnel.de>
Sun, 1 Dec 2013 07:59:47 +0000 (08:59 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sun, 1 Dec 2013 07:59:47 +0000 (08:59 +0100)
Cython/Compiler/Nodes.py

index ba1e7e9..8f3294b 100644 (file)
@@ -2941,6 +2941,7 @@ class DefNodeWrapper(FuncDefNode):
     def generate_function_definitions(self, env, code):
         lenv = self.target.local_scope
         # Generate C code for header and body of function
+        code.mark_pos(self.pos)
         code.putln("")
         code.putln("/* Python wrapper */")
         preprocessor_guard = self.target.get_preprocessor_guard()