swig/Examples/test-suite/cpp0x_function_objects.i
2010-06-26 22:48:49 +00:00

18 lines
413 B
OpenEdge ABL

/* This testcase checks whether SWIG correctly parses function objects
and the templates for the functions (signature).
Function objects are objects which overload the operator() function. */
%module cpp0x_function_objects
%inline %{
//function<int ( int, int )> pF; // not supported yet by the compiler
struct Test {
int value;
void operator()(short x, short y) {
value=10;
}
} test;
%}