fix #697 - miscounting comma in member lists
fix method for counting comma in member list
This commit is contained in:
parent
6310cdb28a
commit
bff182d556
3 changed files with 19 additions and 4 deletions
|
|
@ -19,7 +19,8 @@ C_TEST_CASES += \
|
|||
CPP_TEST_CASES += \
|
||||
r_double_delete \
|
||||
r_overload_array \
|
||||
r_sexp
|
||||
r_sexp \
|
||||
r_overload_comma
|
||||
|
||||
include $(srcdir)/../common.mk
|
||||
|
||||
|
|
|
|||
14
Examples/test-suite/r_overload_comma.i
Normal file
14
Examples/test-suite/r_overload_comma.i
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
%module r_overload_comma
|
||||
|
||||
%inline %{
|
||||
class r_overload_comma
|
||||
{
|
||||
public:
|
||||
int getMember1()const {return _member1;}
|
||||
void setMember1ThatEndsWithWord_get(int arg) { _member1=arg; }
|
||||
void setMember1ThatEndsWithWord_get(char* arg) {_member1=atoi(arg);}
|
||||
|
||||
private:
|
||||
int _member1;
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue