From 151e882462c0bf8bbb134b3bd2fc71342508e0f5 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 18 Nov 2003 22:56:02 +0000 Subject: [PATCH] contract assert macro fix git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5343 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/csharp/csharphead.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/csharp/csharphead.swg b/Lib/csharp/csharphead.swg index cd78a963a..42f340e81 100644 --- a/Lib/csharp/csharphead.swg +++ b/Lib/csharp/csharphead.swg @@ -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 %}