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:
parent
c9fbb81e4a
commit
fb0cddfd2b
4 changed files with 9 additions and 2 deletions
5
Examples/test-suite/contract_c.i
Normal file
5
Examples/test-suite/contract_c.i
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
%module contract_c;
|
||||
|
||||
%include <exception.i>
|
||||
|
||||
%include "contract.i"
|
||||
Loading…
Add table
Add a link
Reference in a new issue