Various warning fixes for Visual Studio 2003 C++ compiler

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6204 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-09-01 22:24:24 +00:00
commit de4c1d3322
18 changed files with 29 additions and 16 deletions

View file

@ -31,9 +31,11 @@ short full_of_exceptions(int num) {
%typemap(throws, throws="IllegalAccessException") int {
(void)$1;
jclass excep = jenv->FindClass("java/lang/IllegalAccessException");
if (excep)
if (excep) {
jenv->ThrowNew(excep, "Test exception");
}
return $null;
}
%inline %{