%exception fixes for C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6953 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e0a1a5231e
commit
c9d6c1a6e3
1 changed files with 5 additions and 0 deletions
|
|
@ -59,8 +59,13 @@
|
||||||
|
|
||||||
/* Common features */
|
/* Common features */
|
||||||
|
|
||||||
|
#ifdef SWIGCSHARP
|
||||||
|
#define %exception %feature("except", canthrow=1)
|
||||||
|
#else
|
||||||
#define %exception %feature("except")
|
#define %exception %feature("except")
|
||||||
|
#endif
|
||||||
#define %noexception %feature("except","")
|
#define %noexception %feature("except","")
|
||||||
|
|
||||||
#define %newobject %feature("new")
|
#define %newobject %feature("new")
|
||||||
|
|
||||||
/* Warnings */
|
/* Warnings */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue