summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-31 20:44:56 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-05-31 20:44:56 (GMT)
commit1611735b293128f8638f68b21d66e34817eb8f86 (patch)
tree85258c0710cbdc203dd7135da8310d1858447f20 /eval_intern.h
parent45458752d3f54ac81661d93aa55b8b5805f78138 (diff)
* eval_intern.h, vm_method.c: move macros to functions.
* SCOPE_TEST(f) -> rb_frame_visibility_test(flag). * SCOPE_CHECK(f) -> rb_frame_visibility_check(flag). * SCOPE_SET(f) -> rb_frame_visibility_set(flag). * load.c (load_ext): use it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 0a6e092..0c04a1c 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -199,10 +199,6 @@ enum ruby_tag_type {
#define TAG_FATAL RUBY_TAG_FATAL
#define TAG_MASK RUBY_TAG_MASK
-#define SCOPE_TEST(f) (CREF_VISI(rb_vm_cref()) & (f))
-#define SCOPE_CHECK(f) (CREF_VISI(rb_vm_cref()) == (f))
-#define SCOPE_SET(f) (CREF_VISI_SET(rb_vm_cref(), (f)))
-
/* CREF operators */
#define NODE_FL_CREF_PUSHED_BY_EVAL_ (((VALUE)1)<<15)
@@ -286,6 +282,8 @@ CREF_OMOD_SHARED_UNSET(rb_cref_t *cref)
cref->flags &= ~NODE_FL_CREF_OMOD_SHARED_;
}
+void rb_frame_visibility_set(rb_method_flag_t);
+
void rb_thread_cleanup(void);
void rb_thread_wait_other_threads(void);