summaryrefslogtreecommitdiff
path: root/Lib/swig.swg
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-02-23 19:38:23 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-02-26 12:49:07 +0000
commit546062fdf1b4fc1acd00a61074a35609b8ad64fc (patch)
treed19da49629e84250972190042a81ab898f41b934 /Lib/swig.swg
parent79a1bbee8b36bf05e42a5c7aaf80ee005101aaad (diff)
downloadswig-546062fdf1b4fc1acd00a61074a35609b8ad64fc.tar.gz
Add %rename matching docs and improvements
Add in %$isusing macro for %rename. Improve docs for %$not and notmatch.
Diffstat (limited to 'Lib/swig.swg')
-rw-r--r--Lib/swig.swg5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/swig.swg b/Lib/swig.swg
index 94c6e93e1..223d46482 100644
--- a/Lib/swig.swg
+++ b/Lib/swig.swg
@@ -268,7 +268,9 @@ static int NAME(TYPE x) {
*/
-%define %$not "not" %enddef
+/* Note that when %$not is used with another macro, say %enum as follows: %$not %$enum, the result is "notmatch=enum" */
+%define %$not "not" %enddef
+
%define %$isenum "match"="enum" %enddef
%define %$isenumitem "match"="enumitem" %enddef
%define %$isaccess "match"="access" %enddef
@@ -279,6 +281,7 @@ static int NAME(TYPE x) {
%define %$isnamespace "match"="namespace" %enddef
%define %$istemplate "match"="template" %enddef
%define %$isconstant "match"="constant" %enddef /* %constant definition */
+%define %$isusing "match"="using" %enddef
%define %$isunion "match$kind"="union" %enddef
%define %$isfunction "match$kind"="function" %enddef