update swig on windows
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
/* This test confirms the fix to sourceforge bug #3478922 for R */
|
||||
|
||||
%module overload_method
|
||||
|
||||
#ifdef SWIGOCAML
|
||||
%warnfilter(SWIGWARN_PARSE_KEYWORD) method;
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
class Base
|
||||
{
|
||||
public:
|
||||
|
||||
Base() : x(42) {}
|
||||
|
||||
int method() const { return x; }
|
||||
|
||||
void overloaded_method(int aArg) { x = aArg; }
|
||||
int overloaded_method() const { return x; }
|
||||
|
||||
private:
|
||||
|
||||
int x;
|
||||
};
|
||||
%}
|
||||
Reference in New Issue
Block a user