[Pyrex] Conditional compilation

khinsen at cea.fr khinsen at cea.fr
Thu Apr 7 08:48:43 CEST 2005


On 05.04.2005, at 22:21, David M. Cooke wrote:

> If you're using Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS, then the
> stuff between them should be pure C code: how about making that a
> function and throwing that into a header file, and including it?
>
That's what I have been doing (with macros rather than functions), but  
it's a bit of a pain with a dozen or so cases in a single module, and  
it doesn't do any good to readability.

Konrad.
--
------------------------------------------------------------------------ 
-------
Konrad Hinsen
Laboratoire Leon Brillouin, CEA Saclay,
91191 Gif-sur-Yvette Cedex, France
Tel.: +33-1 69 08 79 25
Fax: +33-1 69 08 82 61
E-Mail: khinsen at cea.fr
------------------------------------------------------------------------ 
-------




More information about the Pyrex mailing list