summaryrefslogtreecommitdiffstats
path: root/vm_core.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-28 01:21:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-28 01:21:45 +0000
commit9c8f6e78f5a8749354fb9847368ce10c14151952 (patch)
tree7e8bd998b643295088b5f76431a9196d2c0d7aae /vm_core.h
parent0ba71ce9653b00460e838e87f52dce1bf58b43df (diff)
downloadruby-9c8f6e78f5a8749354fb9847368ce10c14151952.tar.gz
ruby-9c8f6e78f5a8749354fb9847368ce10c14151952.tar.xz
ruby-9c8f6e78f5a8749354fb9847368ce10c14151952.zip
* vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from vm_insnhelper.h.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm_core.h b/vm_core.h
index 40b993347..9728e98a6 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -529,6 +529,11 @@ typedef struct {
/* inline cache */
typedef struct iseq_inline_cache_entry *IC;
+extern VALUE ruby_vm_global_state_version;
+
+#define GET_VM_STATE_VERSION() (ruby_vm_global_state_version)
+#define INC_VM_STATE_VERSION() \
+ (ruby_vm_global_state_version = (ruby_vm_global_state_version+1) & 0x8fffffff)
void rb_vm_change_state(void);
typedef VALUE CDHASH;