swig/python: %apply, %typemap question

Joshua Muskovitz josh at open.com
Fri Sep 22 21:21:57 EDT 2000


Would it make sense to stick a single #ifdef at the top, like this?

#ifdef SWIG
#define MYPY P<Y>
#else
#define MYPY Y*
#endif

class X
{
    MYPY y1;
    ....
}




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list