fixes for languages without shared_ptr support
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10350 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a356382aeb
commit
d51a2f9322
2 changed files with 11 additions and 4 deletions
|
|
@ -1,13 +1,20 @@
|
|||
%module li_boost_shared_ptr_bits
|
||||
|
||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON)
|
||||
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
|
||||
#endif
|
||||
|
||||
#if defined(SHARED_PTR_WRAPPERS_IMPLEMENTED)
|
||||
|
||||
%include <boost_shared_ptr.i>
|
||||
SWIG_SHARED_PTR(NonDynamic, NonDynamic)
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(SWIGPYTHON)
|
||||
%pythonnondynamic NonDynamic;
|
||||
#endif
|
||||
|
||||
SWIG_SHARED_PTR(NonDynamic, NonDynamic)
|
||||
|
||||
%inline %{
|
||||
#include <boost/shared_ptr.hpp>
|
||||
struct NonDynamic {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue