mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
fixed ruby i guess
This commit is contained in:
parent
c1b6881b8a
commit
fdba179993
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue