summaryrefslogtreecommitdiff
path: root/eval_intern.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 18:53:28 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 18:53:28 (GMT)
commite2c50946986bd9ba29d21ecef9bd32831e760f4b (patch)
tree960c039cb2fd95aacaecfd49b1cddb526d4fbb46 /eval_intern.h
parented130faf2878c383cab52fa5ed887837e04f303d (diff)
* eval_intern.h (THROW_DATA_P): use RB_TYPE_P() instead of
BUILTIN_TYPE(). * thread.c (thread_join): use THROW_DATA_P(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_intern.h')
-rw-r--r--eval_intern.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_intern.h b/eval_intern.h
index 8a43733..605c2aa 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -199,7 +199,7 @@ enum ruby_tag_type {
#define TAG_FATAL RUBY_TAG_FATAL
#define TAG_MASK RUBY_TAG_MASK
-#define THROW_DATA_P(err) (BUILTIN_TYPE(err) == T_NODE)
+#define THROW_DATA_P(err) RB_TYPE_P((err), T_NODE)
#define SCOPE_TEST(f) (CREF_VISI(rb_vm_cref()) & (f))
#define SCOPE_CHECK(f) (CREF_VISI(rb_vm_cref()) == (f))