[cig-commits] r6456 - cs/pyrexembed/trunk

leif at geodynamics.org leif at geodynamics.org
Wed Mar 28 18:09:10 PDT 2007


Author: leif
Date: 2007-03-28 18:09:09 -0700 (Wed, 28 Mar 2007)
New Revision: 6456

Modified:
   cs/pyrexembed/trunk/pyrexembed.py
Log:
Added "except *" to "cdef extern" protos so that Brad can raise Python
exceptions from Pyrex-embedded C++ code.


Modified: cs/pyrexembed/trunk/pyrexembed.py
===================================================================
--- cs/pyrexembed/trunk/pyrexembed.py	2007-03-29 00:50:21 UTC (rev 6455)
+++ cs/pyrexembed/trunk/pyrexembed.py	2007-03-29 01:09:09 UTC (rev 6456)
@@ -294,7 +294,7 @@
         # now process all the shim functions
         for dec, body in self.embedFuncs:
             # add the pyrex import
-            pyrexShimDecs.append("    cdef "+dec)
+            pyrexShimDecs.append("    cdef " + dec + " except *")
             
             # add the .h dec
             fileH.write("extern " + dec + ";\n")



More information about the cig-commits mailing list