Use rstrip instead of regex encoder in %feature_rename
The regex encoder is not always available in SWIG builds.
This commit is contained in:
parent
4a3e1fd44c
commit
7f3f8fd76a
2 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ INTERFACE_TYPEMAPS(CTYPE)
|
||||||
|
|
||||||
%define %interface_impl(CTYPE...)
|
%define %interface_impl(CTYPE...)
|
||||||
%rename("%sSwigImpl") CTYPE;
|
%rename("%sSwigImpl") CTYPE;
|
||||||
%feature("interface", name="%(regex:/(.*)SwigImpl$/\\1/)s") CTYPE;
|
%feature("interface", name="%(rstrip:[SwigImpl])s") CTYPE;
|
||||||
INTERFACE_TYPEMAPS(CTYPE)
|
INTERFACE_TYPEMAPS(CTYPE)
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ INTERFACE_TYPEMAPS(CTYPE)
|
||||||
|
|
||||||
%define %interface_impl(CTYPE...)
|
%define %interface_impl(CTYPE...)
|
||||||
%rename("%sSwigImpl") CTYPE;
|
%rename("%sSwigImpl") CTYPE;
|
||||||
%feature("interface", name="%(regex:/(.*)SwigImpl$/\\1/)s") CTYPE;
|
%feature("interface", name="%(rstrip:[SwigImpl])s") CTYPE;
|
||||||
INTERFACE_TYPEMAPS(CTYPE)
|
INTERFACE_TYPEMAPS(CTYPE)
|
||||||
%enddef
|
%enddef
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue