update swig on windows
This commit is contained in:
21
winx64/bin/swigwin-4.0.0/Examples/python/contract/example.i
Normal file
21
winx64/bin/swigwin-4.0.0/Examples/python/contract/example.i
Normal file
@@ -0,0 +1,21 @@
|
||||
/* File : example.i */
|
||||
%module example
|
||||
|
||||
%contract gcd(int x, int y) {
|
||||
require:
|
||||
x >= 0;
|
||||
y >= 0;
|
||||
}
|
||||
|
||||
%contract fact(int n) {
|
||||
require:
|
||||
n >= 0;
|
||||
ensure:
|
||||
fact >= 1;
|
||||
}
|
||||
|
||||
%inline %{
|
||||
extern int gcd(int x, int y);
|
||||
extern int fact(int n);
|
||||
extern double Foo;
|
||||
%}
|
||||
Reference in New Issue
Block a user