aboutsummaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def6
1 files changed, 4 insertions, 2 deletions
diff --git a/insns.def b/insns.def
index 4840a44083..a062a9f119 100644
--- a/insns.def
+++ b/insns.def
@@ -290,7 +290,8 @@ getglobal
(VALUE val)
// attr bool leaf = leafness_of_getglobal(entry);
{
- val = GET_GLOBAL((VALUE)entry);
+ struct rb_global_entry *gentry = (void *)entry;
+ val = rb_gvar_get(gentry);
}
/* set global variable id as val. */
@@ -301,7 +302,8 @@ setglobal
()
// attr bool leaf = leafness_of_setglobal(entry);
{
- SET_GLOBAL((VALUE)entry, val);
+ struct rb_global_entry *gentry = (void *)entry;
+ rb_gvar_set(gentry, val);
}
/**********************************************************/