Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/python/contract/example.i
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

22 lines
258 B
OpenEdge ABL

/* 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;
%}