diff options
author | Olly Betts <olly@survex.com> | 2017-10-05 11:16:41 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2017-10-08 09:02:28 +1300 |
commit | f85d87a64c5bbb1228ed35ce632d39975adb21c8 (patch) | |
tree | 88b20d92e47bceaf8e943fe44c2be31e2fe2842b /Lib/intrusive_ptr.i | |
parent | 866840f79122d66bf009da88bb5028787e21ac86 (diff) | |
download | swig-f85d87a64c5bbb1228ed35ce632d39975adb21c8.tar.gz |
Fix bug with macro invocation with empty first arg
The first argument was being dropped in this case.
Diffstat (limited to 'Lib/intrusive_ptr.i')
-rw-r--r-- | Lib/intrusive_ptr.i | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/intrusive_ptr.i b/Lib/intrusive_ptr.i index ceaeaf0bb..621a701f9 100644 --- a/Lib/intrusive_ptr.i +++ b/Lib/intrusive_ptr.i @@ -44,18 +44,16 @@ struct SWIG_null_deleter { %#define SWIG_NO_NULL_DELETER_1 } -// Workaround empty first macro argument bug -#define SWIGEMPTYHACK // Main user macro for defining intrusive_ptr typemaps for both const and non-const pointer types %define %intrusive_ptr(TYPE...) %feature("smartptr", noblock=1) TYPE { SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< TYPE > } -SWIG_INTRUSIVE_PTR_TYPEMAPS(SWIGEMPTYHACK, TYPE) +SWIG_INTRUSIVE_PTR_TYPEMAPS(, TYPE) SWIG_INTRUSIVE_PTR_TYPEMAPS(const, TYPE) %enddef %define %intrusive_ptr_no_wrap(TYPE...) %feature("smartptr", noblock=1) TYPE { SWIG_SHARED_PTR_QNAMESPACE::shared_ptr< TYPE > } -SWIG_INTRUSIVE_PTR_TYPEMAPS_NO_WRAP(SWIGEMPTYHACK, TYPE) +SWIG_INTRUSIVE_PTR_TYPEMAPS_NO_WRAP(, TYPE) SWIG_INTRUSIVE_PTR_TYPEMAPS_NO_WRAP(const, TYPE) %enddef |