summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 6c7624193a..6a5c31c922 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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;