diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-06 20:08:00 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-09-06 20:08:00 +0000 |
commit | 32c2f7d4b0ec39bfec99c830c1a1e9e0783959bc (patch) | |
tree | 044ae045b6aa9933c1d0bfb204a7af619016b299 /vm_insnhelper.c | |
parent | 60fe35ac41d780a5d12384c94b60e4dc5d3fb46f (diff) | |
download | ruby-32c2f7d4b0ec39bfec99c830c1a1e9e0783959bc.tar.gz ruby-32c2f7d4b0ec39bfec99c830c1a1e9e0783959bc.tar.xz ruby-32c2f7d4b0ec39bfec99c830c1a1e9e0783959bc.zip |
* vm_insnhelper.c: rename macro name ENABLE_IC_FOR_IVAR
to USE_IC_FOR_IVAR.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 8cec18d40..b00b2464d 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1183,14 +1183,14 @@ vm_get_cvar_base(NODE *cref) } -#ifndef ENABLE_IC_FOR_IVAR -#define ENABLE_IC_FOR_IVAR 1 +#ifndef USE_IC_FOR_IVAR +#define USE_IC_FOR_IVAR 1 #endif static VALUE vm_getivar(VALUE obj, ID id, IC ic) { -#if ENABLE_IC_FOR_IVAR +#if USE_IC_FOR_IVAR if (TYPE(obj) == T_OBJECT) { VALUE val = Qundef; VALUE klass = RBASIC(obj)->klass; @@ -1237,7 +1237,7 @@ vm_getivar(VALUE obj, ID id, IC ic) static void vm_setivar(VALUE obj, ID id, VALUE val, IC ic) { -#if ENABLE_IC_FOR_IVAR +#if USE_IC_FOR_IVAR if (!OBJ_UNTRUSTED(obj) && rb_safe_level() >= 4) { rb_raise(rb_eSecurityError, "Insecure: can't modify instance variable"); } |