From: William S F. <ws...@fu...> - 2011-01-29 19:48:41
|
On 21/01/11 17:40, Daniel Blezek wrote: > Hi, > > The SWIG 2.0 documentation mentions that matching rules used by %rename > can be used in generic %feature commands, but I can’t find documentation > for this. I would like to apply a feature to matching methods in my Swig > file: > > // Add some python code to any get* commands > %feature("pythonappend",regexmatch$name="^get") %{ print ( “GetMethod > called” ) %} > > Is this possible? All the documentation is written like this: > > %feature(“pythonappend”) “getFoo” %{ print ( “GetMethod called” ) %} > > which would only apply the feature to “getFoo”. > Currently the regex support is only for %rename. It does not work with %feature, but could indeed be added in the future. William |