blob: 2d915e102d09b64930a0901e3c68de0d786895d1 [file] [log] [blame]
%module sneaky1
%{
int add(int x, int y) {
return x+y;
}
int subtract(int x, int y) {
return x-y;
}
int mul(int x, int y) {
return x*y;
}
int divide(int x, int y) {
return x/y;
}
%}
%inline %{
typedef int binop(int,int);
%}
binop add,subtract,mul,divide;