Re: [PyQt] If directive for declaring a function for different SIP versions

2013-06-26 Thread Phil Thompson
On Wed, 26 Jun 2013 16:16:41 -0400, Forest Yang wrote: > Hi, > > I have one function to wrap, and want it to work with both sip 4.10 and > 4.13, > There is a KeywordArgs on it. It seems from 4.10 to 4.13 there are some > changes > from /KeywordArgs/ to /KeywordArgs="Optional"/. But the old form

[PyQt] If directive for declaring a function for different SIP versions

2013-06-26 Thread Forest Yang
Hi, I have one function to wrap, and want it to work with both sip 4.10 and 4.13, There is a KeywordArgs on it. It seems from 4.10 to 4.13 there are some changes from /KeywordArgs/ to /KeywordArgs="Optional"/. I hope I can use %if, like the following: %if (- SIP_4_13) void foo(...) /KeywordArgs