*** 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:
Logan Johnson 2003-04-16 22:44:05 +00:00
commit 0af3e7f14f
2 changed files with 5 additions and 8 deletions

View file

@ -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