more %rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2208b55215
commit
6ccea1d981
3 changed files with 24 additions and 1 deletions
|
|
@ -10,6 +10,10 @@ Version 1.3.28 (unreleased).
|
||||||
|
|
||||||
%rename("%(utitle)s",%isfunction,%ismember) "";
|
%rename("%(utitle)s",%isfunction,%ismember) "";
|
||||||
|
|
||||||
|
or to ignore all the enumitems in a given class:
|
||||||
|
|
||||||
|
%rename("$ignore", %isenumitem, %classname="MyClass") "";
|
||||||
|
|
||||||
Available predicates are (see swig.swg):
|
Available predicates are (see swig.swg):
|
||||||
|
|
||||||
%isenum
|
%isenum
|
||||||
|
|
@ -38,6 +42,13 @@ Version 1.3.28 (unreleased).
|
||||||
|
|
||||||
%ismember
|
%ismember
|
||||||
%isglobal
|
%isglobal
|
||||||
|
%innamespace
|
||||||
|
|
||||||
|
%ispublic
|
||||||
|
%isprotected
|
||||||
|
%isprivate
|
||||||
|
|
||||||
|
%classname
|
||||||
|
|
||||||
These predicates correspond to specific 'match'
|
These predicates correspond to specific 'match'
|
||||||
declarations, which sometimes are not as evident as the
|
declarations, which sometimes are not as evident as the
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
%module rename_camel
|
%module rename_camel
|
||||||
|
|
||||||
%rename("%(utitle)s",%isfunction,%ismember) "";
|
%rename("%(utitle)s",%isfunction,%ismember) "";
|
||||||
|
%rename("%(ctitle)s",%isvariable,%ismember) "";
|
||||||
|
|
||||||
%inline {
|
%inline {
|
||||||
struct GeometryFactory
|
struct GeometryFactory
|
||||||
|
|
|
||||||
11
Lib/swig.swg
11
Lib/swig.swg
|
|
@ -221,6 +221,10 @@ static int NAME(TYPE x) {
|
||||||
|
|
||||||
%rename("g_%(utitle)s", %isfunction, %isglobal) "";
|
%rename("g_%(utitle)s", %isfunction, %isglobal) "";
|
||||||
|
|
||||||
|
- to ignore the enumitems in a given class:
|
||||||
|
|
||||||
|
%rename("$ignore", %isenumitem, %classname="MyClass") "";
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -250,6 +254,13 @@ static int NAME(TYPE x) {
|
||||||
|
|
||||||
%define %ismember match$parentNode$nodeType="class" %enddef
|
%define %ismember match$parentNode$nodeType="class" %enddef
|
||||||
%define %isglobal notmatch$parentNode$nodeType="class" %enddef
|
%define %isglobal notmatch$parentNode$nodeType="class" %enddef
|
||||||
|
%define %innamespace match$parentNode$nodeType="namespace" %enddef
|
||||||
|
|
||||||
|
%define %ispublic match$access="public" %enddef
|
||||||
|
%define %isprotected match$access="protected" %enddef
|
||||||
|
%define %isprivate match$access="public" %enddef
|
||||||
|
|
||||||
|
%define %classname %ismember,match$parentNode$name %enddef
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* Include all the warnings labels and macros
|
* Include all the warnings labels and macros
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue