diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-28 01:21:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-28 01:21:45 +0000 |
commit | a2f378737fc70cdfce65a3d08eda1c9a99d89b4d (patch) | |
tree | 7e8bd998b643295088b5f76431a9196d2c0d7aae /vm_core.h | |
parent | afb957b129b76050a5f8d241a3a9c030ae9799b5 (diff) | |
download | ruby-a2f378737fc70cdfce65a3d08eda1c9a99d89b4d.tar.gz |
* vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from vm_insnhelper.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r-- | vm_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |