diff options
Diffstat (limited to 'Doc/Manual/Customization.html')
-rw-r--r-- | Doc/Manual/Customization.html | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/Manual/Customization.html b/Doc/Manual/Customization.html index e9d70e39a..ec73e5460 100644 --- a/Doc/Manual/Customization.html +++ b/Doc/Manual/Customization.html @@ -1019,6 +1019,20 @@ but this will: </pre> </div> +<p> +SWIG provides macros for disabling and clearing features. Many of these can be found in the <tt>swig.swg</tt> library file. +The typical pattern is to define three macros; one to define the feature itself, one to disable the feature and one to clear the feature. +The three macros below show this for the "except" feature: +</p> + +<div class="code"> +<pre> +#define %exception %feature("except") +#define %noexception %feature("except","0") +#define %clearexception %feature("except","") +</pre> +</div> + <H3><a name="Customization_features_default_args"></a>11.3.4 Features and default arguments</H3> |