fix ConstMethods order for ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d174b1b231
commit
344ab4e1e0
1 changed files with 7 additions and 6 deletions
|
|
@ -180,12 +180,6 @@ Klass constructorcall(const Klass& k = Klass()) { return k; }
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
// const methods
|
|
||||||
// runtime test needed to check that the const method is called
|
|
||||||
struct ConstMethods {
|
|
||||||
int coo(double d = 0.0) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
struct ConstMethods {
|
struct ConstMethods {
|
||||||
int coo(double d = 0.0) { return 10; }
|
int coo(double d = 0.0) { return 10; }
|
||||||
|
|
@ -193,6 +187,13 @@ struct ConstMethods {
|
||||||
};
|
};
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
// const methods
|
||||||
|
// runtime test needed to check that the const method is called
|
||||||
|
struct ConstMethods {
|
||||||
|
int coo(double d = 0.0) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Default args with C linkage
|
// Default args with C linkage
|
||||||
%inline
|
%inline
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue