fixed ruby i guess

This commit is contained in:
meowtech 2026-03-31 10:55:46 +00:00
parent c1b6881b8a
commit fdba179993

View file

@ -78,8 +78,14 @@ raiseRbExc(const Exception &exc);
#define DEF_TYPE_FLAGS
#endif
/*
#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 }
*/
// 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) \
DEF_TYPE_CUSTOMNAME_AND_FREE(Klass, #Klass, Free)