Add C "contract" test

Tests that the `%contract` code (viz., each target language's
implementation of SWIG_contract_assert) compiles in C as expected. Update
the note in the source code since `%contract` is in the official
documentation.
This commit is contained in:
Seth R Johnson 2022-02-12 18:13:20 -05:00
commit fb0cddfd2b
4 changed files with 9 additions and 2 deletions

View file

@ -172,7 +172,7 @@
#define %novaluewrapper %feature("novaluewrapper")
#define %clearnovaluewrapper %feature("novaluewrapper","")
/* Contract support - Experimental and undocumented */
/* Contract support - Experimental */
#define %contract %feature("contract")
#define %nocontract %feature("contract","0")
#define %clearcontract %feature("contract","")