diff options
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -31,6 +31,10 @@ #error "unsupported thread type" #endif +#ifndef ENABLE_VM_OBJSPACE +#define ENABLE_VM_OBJSPACE 1 +#endif + #include <setjmp.h> #include <signal.h> @@ -239,6 +243,11 @@ enum ruby_special_exceptions { #define GetVMPtr(obj, ptr) \ GetCoreDataFromValue(obj, rb_vm_t, ptr) +#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE +struct rb_objspace; +void rb_objspace_free(struct rb_objspace *); +#endif + typedef struct rb_vm_struct { VALUE self; |