Sign in
fuchsia
/
third_party
/
swig
/
refs/heads/upstream/ci-d
/
.
/
Examples
/
scilab
/
contract
/
example.i
blob: 8fd1a80af72ce77aeb3902b752df159abf8d8035 [
file
] [
log
] [
blame
] [
edit
]
/* 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
;
%}