typemap fix for c# and visual c++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
020a41729d
commit
84c385ef83
1 changed files with 8 additions and 0 deletions
|
|
@ -53,7 +53,11 @@ namespace ns1 {
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
%typemap(in) A * { /* in A */ }
|
%typemap(in) A * { /* in A */ }
|
||||||
|
#ifdef SWIGCSHARP
|
||||||
|
%typemap(out) A * { /* out A */ $result=0; }
|
||||||
|
#else
|
||||||
%typemap(out) A * { /* out A */ }
|
%typemap(out) A * { /* out A */ }
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -69,7 +73,11 @@ namespace ns1 {
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
%typemap(in) N * { /* in N */ }
|
%typemap(in) N * { /* in N */ }
|
||||||
|
#ifdef SWIGCSHARP
|
||||||
|
%typemap(out) N * { /* out N */ $result=0; }
|
||||||
|
#else
|
||||||
%typemap(out) N * { /* out N */ }
|
%typemap(out) N * { /* out N */ }
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue