C# exception handling correction
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10203 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
a91c3e9120
commit
e89a5119c3
1 changed files with 3 additions and 2 deletions
|
|
@ -31,8 +31,9 @@ public:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SWIGCSHARP)
|
#if defined(SWIGCSHARP)
|
||||||
%typemap(csout) Foo * {
|
%typemap(csout, excode=SWIGEXCODE) Foo * {
|
||||||
return new Bar($imcall, $owner);
|
Bar ret = new Bar($imcall, $owner);$excode
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue