swig/Source
Vadim Zeitlin 9a8ebbb998 Throw SWIG_CException from C++ wrappers automatically
Check for the pending exception after every call to a wrapper function
not marked "noexcept" and throw a C++ exception if necessary.

Add C++ version of the exception example to show how this works.

Also change SWIG_CException to use member functions for checking for and
resetting pending exceptions, this seems better than having separate
functions for it and will make it easier to customize exception handling
later by just replacing SWIG_CException class with something else.

Note that we still use a global (and not a member) function for raising
the exception, but this one is not exported at all, and needs to be a
function in order to be easily callable from other modules (see the
upcoming commit).
2021-11-27 00:19:05 +01:00
..
CParse Fix -Wchar-subscripts warning 2021-04-26 22:32:52 +01:00
DOH Fix few unused variable warnings 2021-03-07 11:20:31 +00:00
Doxygen Don't use invalid iterators in Doxygen command parsing code 2021-02-22 21:15:03 +01:00
Include Merge branch 'master' into C 2021-10-04 16:03:36 +02:00
Modules Throw SWIG_CException from C++ wrappers automatically 2021-11-27 00:19:05 +01:00
Preprocessor Allow customizing type mangling in SWIG preprocessor 2021-11-10 00:53:39 +01:00
Swig Use SWIG-specific suffix for non-overloaded %extend functions too 2021-11-10 00:53:39 +01:00
Makefile.am Merge branch 'master' into C 2019-07-24 20:26:50 +02:00
README Remove details of long-removed directories 2021-05-16 08:42:39 +12:00

SWIG Source directory

 Source/DOH          -  A core set of basic datatypes including
                        strings, lists, hashes, and files.  Used
                        extensively by the rest of SWIG.

 Source/Swig         -  Swig core. Type-system, utility functions.

 Source/Preprocessor -  SWIG C Preprocessor

 Source/CParse       -  SWIG C Parser (still messy)

 Source/Modules      -  Language modules.

 Source/Include      -  Include files.