fix dirprot mode
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5874 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
38089c5a2a
commit
23ea59435d
5 changed files with 34 additions and 31 deletions
|
|
@ -598,8 +598,8 @@ public:
|
|||
case MEMBER_FUNC:
|
||||
{
|
||||
#ifdef SWIG_PROTECTED_TARGET_METHODS
|
||||
const char* rb_define_method = is_protected(n) ?
|
||||
"rb_define_protected_method" : "rb_define_method";
|
||||
const char* rb_define_method = is_public(n) ?
|
||||
"rb_define_method" : "rb_define_protected_method" ;
|
||||
#else
|
||||
const char* rb_define_method = "rb_define_method";
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue