git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6771 626c5289-ae23-0410-ae9c-e8d60b6d4f22
32 lines
328 B
OpenEdge ABL
32 lines
328 B
OpenEdge ABL
%module lib_std_stream
|
|
|
|
%include <std_iostream.i>
|
|
|
|
|
|
%pythoncallback(1) A::bar;
|
|
|
|
%inline %{
|
|
|
|
struct A
|
|
{
|
|
void __add__(int a)
|
|
{
|
|
}
|
|
|
|
void __add__(double a)
|
|
{
|
|
}
|
|
|
|
static int bar(int a){
|
|
return a;
|
|
}
|
|
|
|
static int foo(int a, int (*pf)(int a))
|
|
{
|
|
return pf(a);
|
|
}
|
|
|
|
};
|
|
|
|
|
|
%}
|