Move this function definition to cexcept.swg from the code and only define it if SWIG_swig_check_DEFINED is not defined yet, which both simplifies the code in C.cxx and makes exception handling code more flexible, as it's now possible to predefine SWIG_swig_check_DEFINED in the code injected into the "cxxheader" section to replace the default implementation. Show an example of doing this in the documentation and document handling exceptions with C API too. The changes above required adding a new "cxxcode" section, corresponding to the "implementation" part of C++ wrappers and defining a new SWIG_CXX_WRAPPERS preprocessor symbol to allow only adding C++-specific code when C++ wrappers are actually generated. Also improve the documentation of the C-specific sections in the manual. |
||
|---|---|---|
| .. | ||
| allocate.cxx | ||
| browser.cxx | ||
| c.cxx | ||
| cffi.cxx | ||
| contract.cxx | ||
| csharp.cxx | ||
| d.cxx | ||
| directors.cxx | ||
| emit.cxx | ||
| go.cxx | ||
| guile.cxx | ||
| interface.cxx | ||
| java.cxx | ||
| javascript.cxx | ||
| lang.cxx | ||
| lua.cxx | ||
| main.cxx | ||
| mzscheme.cxx | ||
| nested.cxx | ||
| ocaml.cxx | ||
| octave.cxx | ||
| overload.cxx | ||
| perl5.cxx | ||
| php.cxx | ||
| python.cxx | ||
| r.cxx | ||
| README | ||
| ruby.cxx | ||
| scilab.cxx | ||
| swigmain.cxx | ||
| swigmod.h | ||
| tcl8.cxx | ||
| typepass.cxx | ||
| utils.cxx | ||
| xml.cxx | ||
06/25/2002 This directory contains all of the SWIG language modules. Many of these modules contain code that dates back to SWIG1.0. The module API has changed a lot in the development releases so this is fairly messy. We're working on cleaning it up, but you'll have to bear with us until it's done. -- Dave