[Python-3000] how about switching to a preprocessor? (Re: A better way to initialize PyTypeObject) (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Dec 3 02:13:47 CET 2006
- Previous message: [Python-3000] how about switching to a preprocessor? (Re: A better way to initialize PyTypeObject)
- Next message: [Python-3000] how about switching to a preprocessor? (Re: A better way to initialize PyTypeObject)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Antoine Pitrou wrote:
I think you could declare a C macro as an "external function" in the Pyrex code and Pyrex would probably be happy with that.
Yes, that works as long as you can declare it as having parameter and return types that make sense to Pyrex.
There are a few things that can't be handled that way, such as type-polymorphic macros. I haven't come up with a good solution for those, yet.
-- Greg
- Previous message: [Python-3000] how about switching to a preprocessor? (Re: A better way to initialize PyTypeObject)
- Next message: [Python-3000] how about switching to a preprocessor? (Re: A better way to initialize PyTypeObject)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]