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

@ -0,0 +1,5 @@
%module contract_c;
%include <exception.i>
%include "contract.i"