[Cython] wrapping c++
Neal Becker
ndbecker2 at gmail.com
Tue Mar 4 17:21:06 CET 2008
Stefan Behnel wrote:
> William Stein wrote:
>> cdef extern from "":
>> void DEFINE_SET "#define SET(a,b,c) a[b]=c; //"()
>> void SET(intvec, int, int)
>> DEFINE_SET()
>>
>> The key thing is the evil dirty trick to define a SET macro directly in
>> Cython.
>
> "Evil" and "dirty" were exactly the two words that came to my mind before
> I even got to reading your own comment on this. :)
>
> I would really put something like this into an external header file, and
> just declare "SET()" as being external...
>
> Stefan
Any thoughts on what it would take to support a non-evil implementation?
More information about the Cython-dev
mailing list