Commit graph

25 commits

Author SHA1 Message Date
William S Fulton
50cb18087d test-suite fixes (2) for compilers that don't support varargs
Split director_exception testcase into two so that testing throw(),
with no arguments, that is nothrows, can be tested separately to throw()
taking arguments. [The throw keyword needs to be removed for C++
compilation in C++11 and later when it was deprecated.]
2018-05-06 09:46:37 +01:00
William S Fulton
6cc6d21bd2 test-suite fix for c++17 and throw macro 2018-05-04 20:02:13 +01:00
William S Fulton
35b792daed test-suite support for C++17: exception specification throw removal 2018-05-04 20:02:13 +01:00
William S Fulton
91080872a8 Tidy up director_exception testcase 2017-11-29 20:32:15 +00:00
William S Fulton
6a3910690b director_exception testcase warning fixes
Fixes: 'function assumed not to throw an exception but does'
2017-05-14 01:07:14 +01:00
William S Fulton
760c008311 Warning fixes for gcc-7
warning: dynamic exception specifications are deprecated in C++11; use 'noexcept' instead [-Wdeprecated]
2017-02-06 20:30:09 +00:00
Olly Betts
1adfe2f537 [PHP] Fix code generated for feature("director:except")
Previously the return value of call_user_function() was ignored and we
checked an uninitialised value instead.  Fixes #627.  Based on patch
from Sergey Seroshtan.
2016-09-25 14:42:04 +13:00
William S Fulton
bbad7f96ab Bypass Python tests throwing base classes as exceptions for -builtin
Throwing builtin classes as exceptions is not supported
2014-10-07 20:58:30 +01:00
William S Fulton
783e816d89 Testcase warning suppression 2014-09-23 19:54:13 +01:00
Olly Betts
e12322df86 [PHP] Fix throwing a PHP exception through C++ from a subclassed
director method - PHP NULL gets returned by the subclassed method
in this case, so the directorout typemap needs to allow that (at
least if an exception is active).
2014-09-11 13:09:08 -03:00
Marvin Greenberg
6736e74127 Add feature director:except for improved director exception handling in Java
Closes #91
2013-10-22 20:44:35 +01:00
William S Fulton
1fad10b79b muffle exception specification ignored warning (VC++). This is only for testcases that introduce exception specifications in the testcase case itself.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8400 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2006-01-12 23:43:16 +00:00
Marcelo Matus
f4a45fa252 adding more cases and suppressing the 470 warning
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7854 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-21 20:29:54 +00:00
Marcelo Matus
285590d616 adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7827 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-11-08 16:03:54 +00:00
William S Fulton
f8984f4db8 warning fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2005-02-28 22:33:47 +00:00
Marcelo Matus
48d1b19bb7 fix empty throw() + directors
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6322 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-05 21:06:56 +00:00
Marcelo Matus
e0ad008aac forgot %feature(director) for Bar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6145 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-25 05:32:34 +00:00
Lyle Johnson
cf476a18d6 *** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6128 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-08-24 13:44:51 +00:00
Marcelo Matus
7d85c1f1b0 more tests for exception
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5945 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-05-29 23:24:53 +00:00
William S Fulton
9da574aae9 __DIRECTOR__ renamed Swig::Director
SWIG_DIRECTOR_EXCEPTION renamed Swig::DirectorException (similarly for derived classes)


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5138 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-22 20:13:42 +00:00
William S Fulton
e228a66c5e Removed unused typemap file includes
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5114 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-09-16 20:53:11 +00:00
Logan Johnson
8ee20885b1 Modified how the SWIG_DIRECTOR_EXCEPTION class (and its subclasses) are
implemented for the Ruby module. Now the SWIG_DIRECTOR_EXCEPTION object
stores a reference to the Ruby exception instance.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-06-03 17:54:53 +00:00
Logan Johnson
3fd12995c7 A little more work on the Ruby support for C++ polymorphism. Exception
handling almost works...


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4745 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-04-29 16:08:16 +00:00
William S Fulton
4908f410d7 Fix for languages that don't define SWIG_fail - thanks Mark
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4553 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-17 09:23:43 +00:00
Mark Rose
08e16bed8e four new director tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4449 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-03-07 10:30:11 +00:00