summaryrefslogtreecommitdiff
path: root/Lib/swig.swg
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2017-08-25 19:08:09 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2017-08-30 18:17:04 +0100
commit8a40327aa8f75af9d5c68bfee1125be4544f2865 (patch)
treec0d5aaefa8f01b01b700d1e889181c36070c619e /Lib/swig.swg
parent1cf599bccb100f3bcda42f5f507ea32f99cd5f89 (diff)
downloadswig-8a40327aa8f75af9d5c68bfee1125be4544f2865.tar.gz
Add unignore for rvalue ref-qualifiers
Use std::move on this pointer as the default approach to supporting rvalue ref-qualifiers if a user really wants to wrap. std::move requires <memory> headers so add swigfragments.swg for all languages to use common fragments. Just header file fragments for now.
Diffstat (limited to 'Lib/swig.swg')
-rw-r--r--Lib/swig.swg4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/swig.swg b/Lib/swig.swg
index 6f48f0d20..6dc215dcf 100644
--- a/Lib/swig.swg
+++ b/Lib/swig.swg
@@ -309,11 +309,13 @@ static int NAME(TYPE x) {
%define %$classname %$ismember,"match$parentNode$name" %enddef
%define %$isnested "match$nested"="1" %enddef
+
/* -----------------------------------------------------------------------------
- * Include all the warnings labels and macros
+ * Common includes for warning labels, macros, fragments etc
* ----------------------------------------------------------------------------- */
%include <swigwarnings.swg>
+%include <swigfragments.swg>
/* -----------------------------------------------------------------------------
* Overloading support