git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
29 lines
277 B
OpenEdge ABL
29 lines
277 B
OpenEdge ABL
%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;
|
|
|
|
|
|
|
|
|
|
|