<div dir="ltr">Hi,<div><br></div><div style> I have one function to wrap, and want it to work with both sip 4.10 and 4.13,</div><div style>There is a KeywordArgs on it. It seems from 4.10 to 4.13 there are some changes</div>
<div style>from /KeywordArgs/ to /KeywordArgs="Optional"/.</div><div style><br></div><div style>I hope I can use %if, like the following:</div><div style><br></div><div style>%if (- SIP_4_13)</div><div style>void foo(...) /KeywordArgs/;</div>
<div style>%End</div><div style>%if (SIP_4_13_2 -)</div><div style>void foo(..) /KeywordArgs="Optional"/;</div><div style>%End</div><div style>%MethodCode</div><div style>.....</div><div style>%End.</div><div style>
<br></div><div style><br></div><div style>But sip complains about the syntax error at line "%MethodCode". I am using sip_4_13_2.</div><div style><br></div><div style>Thanks.</div><div style><br></div><div style>
Best regards,</div><div style>Forest</div></div>