swig/Examples/c/exception
Vadim Zeitlin d2546e23ff Don't use exception specification with C++ compiler in example
Support for the exception specifications using types was removed in
C++17 (and "throw ()" in C++20), so don't use them when using the C++
compiler any longer, as this broke the example with recent g++ versions
that use C++17 by default.

We still need them for SWIG, however, so use SWIG_THROW macro, defined
differently for SWIG and the compiler, to preserve the existing
behaviour.

Using %except might be a better idea, but would require more changes.
2021-11-24 20:16:42 +01:00
..
example.cxx Removing some memory leak problems when handling exceptions. 2008-07-26 14:18:37 +00:00
example.h Don't use exception specification with C++ compiler in example 2021-11-24 20:16:42 +01:00
example.i Don't use exception specification with C++ compiler in example 2021-11-24 20:16:42 +01:00
Makefile Allow having C++ test cases for C backend 2021-11-19 00:08:43 +01:00
runme.c Remove wrapper aliases generation and use -namespace in the tests 2021-11-10 02:11:59 +01:00