aboutsummaryrefslogtreecommitdiff
path: root/Lib/swig.swg
diff options
context:
space:
mode:
authorMarcelo Matus <mmatus@acms.arizona.edu>2006-01-12 15:44:27 +0000
committerMarcelo Matus <mmatus@acms.arizona.edu>2006-01-12 15:44:27 +0000
commit6ccea1d981e60644c6db03a0009d12c436be154f (patch)
tree21bb00166c47ac4f54ab329e6e34b4f0f52abc24 /Lib/swig.swg
parent2208b55215549c4dd869d8c760b6275e97f48445 (diff)
downloadswig-6ccea1d981e60644c6db03a0009d12c436be154f.tar.gz
more %rename predicates
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8389 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/swig.swg')
-rw-r--r--Lib/swig.swg11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/swig.swg b/Lib/swig.swg
index 58cef54d7..7d498a092 100644
--- a/Lib/swig.swg
+++ b/Lib/swig.swg
@@ -221,6 +221,10 @@ static int NAME(TYPE x) {
%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 %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