fixed ruby i guess
This commit is contained in:
parent
c1b6881b8a
commit
fdba179993
|
|
@ -78,8 +78,14 @@ raiseRbExc(const Exception &exc);
|
||||||
#define DEF_TYPE_FLAGS
|
#define DEF_TYPE_FLAGS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
#define DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, Name, Free) \
|
#define DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, Name, Free) \
|
||||||
rb_data_type_t Klass##Type = { Name, { 0, Free, 0, { 0, 0 } }, 0, 0, (void*)DEF_TYPE_FLAGS }
|
rb_data_type_t Klass##Type = { Name, { 0, Free, 0, { 0, 0 } }, 0, 0, (void*)DEF_TYPE_FLAGS }
|
||||||
|
*/
|
||||||
|
|
||||||
|
// should able to compile now, i think?
|
||||||
|
#define DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, Name, Free) \
|
||||||
|
rb_data_type_t Klass##Type = { Name, { 0, Free, 0, }, 0, NULL, DEF_TYPE_FLAGS }
|
||||||
|
|
||||||
#define DEF_TYPE_CUSTOMFREE(Klass, Free) \
|
#define DEF_TYPE_CUSTOMFREE(Klass, Free) \
|
||||||
DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, #Klass, Free)
|
DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, #Klass, Free)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue