Don't test shared_ptr for languages that don't have support for shared_ptr
This commit is contained in:
parent
5199a9002f
commit
3abe3517f8
1 changed files with 10 additions and 1 deletions
|
|
@ -32,6 +32,12 @@ public:
|
|||
|
||||
%}
|
||||
|
||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON) || defined(SWIGD)
|
||||
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
|
||||
#endif
|
||||
|
||||
#if defined(SHARED_PTR_WRAPPERS_IMPLEMENTED)
|
||||
|
||||
%include <std_string.i>
|
||||
%include <boost_shared_ptr.i>
|
||||
|
||||
|
|
@ -60,4 +66,7 @@ public:
|
|||
virtual FooBar makeFooBar();
|
||||
|
||||
static Foo* get_self(Foo *self_);
|
||||
};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue