contract assert macro fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f32aca08f1
commit
7940ccaee8
1 changed files with 1 additions and 1 deletions
|
|
@ -165,5 +165,5 @@ DllExport void SWIGSTDCALL SWIGRegisterStringCallback_$module(SWIG_CSharpStringH
|
|||
|
||||
/* Contract support */
|
||||
|
||||
#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, msg); return nullreturn; } else
|
||||
#define SWIG_contract_assert(nullreturn, expr, msg) if (!(expr)) {SWIG_CSharpThrowException(SWIG_CSharpArgumentOutOfRangeException, msg); return nullreturn; } else
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue