git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@13842 626c5289-ae23-0410-ae9c-e8d60b6d4f22
22 lines
472 B
OpenEdge ABL
22 lines
472 B
OpenEdge ABL
/* This testcase checks whether SWIG correctly treats the new nullptr_t
|
|
constant introduced in C++0x.
|
|
*/
|
|
|
|
%module cpp0x_null_pointer_constant
|
|
|
|
%feature("autodoc") A::NullPtrMethod; // Triggers conversion of nullptr to None, nil etc in target language
|
|
%feature("compactdefaultargs") A::NullPtrMethod;
|
|
|
|
%inline %{
|
|
|
|
const int *const MyIntegerPtr = nullptr;
|
|
|
|
class A {
|
|
public:
|
|
A() : _myA(nullptr) { }
|
|
|
|
A *_myA;
|
|
|
|
void NullPtrMethod(double *ptr = nullptr) {}
|
|
};
|
|
%}
|