fix ConstMethods order for ruby
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6634 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
80c1b147c7
commit
34a5893881
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 {
|
||||
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
|
||||
%inline
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue