Add director shared_ptr typemaps for C#

This commit is contained in:
William S Fulton 2017-10-17 21:53:44 +01:00
commit 46ea2ab0a6
3 changed files with 189 additions and 2 deletions

View file

@ -5,7 +5,7 @@
%}
//#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON) || defined(SWIGD) || defined(SWIGOCTAVE) || defined(SWIGRUBY) || defined(SWIGR)
#if defined(SWIGJAVA) || defined(SWIGPYTHON) || defined(SWIGOCTAVE) || defined(SWIGRUBY) || defined(SWIGR)
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGPYTHON) || defined(SWIGOCTAVE) || defined(SWIGRUBY) || defined(SWIGR)
#define SHARED_PTR_WRAPPERS_IMPLEMENTED
#endif
@ -20,6 +20,7 @@ struct C {
C() : m(1) {}
C(int n) : m(n) {}
int get_m() { return m; }
private:
int m;
};