summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 07:50:11 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-07 07:50:11 (GMT)
commit2b2c6911887d46be7cbfc8520e8cb5ed1843bc12 (patch)
tree760e5a3a57ea50255e5fbdc40585f346108d674f /vm_core.h
parent22fa19d1dce664814964d55addc3d0181ee863a9 (diff)
vm_core.h: objspace always
* vm_core.h (rb_vm_struct): define objspace always regardless ENABLE_VM_OBJSPACE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/vm_core.h b/vm_core.h
index cad0e09..2a42753 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -409,10 +409,9 @@ enum ruby_basic_operators {
#define GetVMPtr(obj, ptr) \
GetCoreDataFromValue((obj), rb_vm_t, (ptr))
-#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace;
+struct rb_objspace *rb_objspace_alloc(void);
void rb_objspace_free(struct rb_objspace *);
-#endif
typedef struct rb_hook_list_struct {
struct rb_event_hook_struct *hooks;
@@ -476,9 +475,7 @@ typedef struct rb_vm_struct {
VALUE defined_module_hash;
-#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
struct rb_objspace *objspace;
-#endif
/*
* @shyouhei notes that this is not for storing normal Ruby