*** empty log message ***
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4689 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
432bd404c6
commit
0af3e7f14f
2 changed files with 5 additions and 8 deletions
|
|
@ -97,6 +97,7 @@ typedef struct {
|
|||
#endif
|
||||
|
||||
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
||||
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF(klass), "new")
|
||||
#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
|
||||
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue