Added support for null pointer constant introduced in C++0x. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11484 626c5289-ae23-0410-ae9c-e8d60b6d4f22
16 lines
285 B
OpenEdge ABL
16 lines
285 B
OpenEdge ABL
%module cpp0x_alternate_function_syntax
|
|
|
|
%inline %{
|
|
struct SomeStruct {
|
|
int addNormal(int x, int y);
|
|
auto addAlternate(int x, int y) -> int;
|
|
};
|
|
|
|
auto SomeStruct::addAlternate(int x, int y) -> int {
|
|
return x + y;
|
|
}
|
|
|
|
int SomeStruct::addNormal(int x, int y) {
|
|
return x + y;
|
|
}
|
|
%}
|