From: Bill S. <wf...@sa...> - 2007-04-19 15:49:02
|
If it is documented, it isn't obvious to me. I learned through experience and the mail list that directives such as %ignore work on everything AFTER the directive. This fact really gives you a greater degree of control over the resulting wrappers, and it changed how I developed my interface files. On Apr 19, 2007, at 7:57 AM, Rob Stewart wrote: > From: "Bill Spotz" <wf...@sa...> >> >> This commonly happens when you have a misplaced %ignore. If you do >> have a related %ignore, make sure it comes after the %extend. > > Bingo! Thank you. > > Is that documented and I missed it? > >> On Apr 18, 2007, at 4:14 PM, Rob Stewart wrote: >> >>> I have added a method to a C++ class via %extend. The function >>> takes some PyObject *'s, because that's what I really want. >>> There are no warnings, but the function doesn't appear in the >>> SWIG output files. >>> >>> Here's my %extend: >>> >>> %extend Example >>> { >>> bool >>> foo(PyObject * a, PyObject * b, Something c) >>> { >>> /* elided */ >>> } >>> }; >>> >>> Why doesn't this function appear in the output for Example? > > -- > Rob Stewart rob...@si... > Software Engineer http://www.sig.com > Susquehanna International Group, LLP using std::disclaimer; ** Bill Spotz ** ** Sandia National Laboratories Voice: (505)845-0170 ** ** P.O. Box 5800 Fax: (505)284-5451 ** ** Albuquerque, NM 87185-0370 Email: wf...@sa... ** |