summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-28 13:11:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-28 13:11:00 +0000
commitf25e55cb875b64a84c2e1f9e24722b129ba07ce0 (patch)
tree83ff8715cd39a488bc3118fe63243d9e27278773
parentf526fc2cfa4ae37ed392410a4e6597ffe5bc0db3 (diff)
tcltklib.c: rb_thread_alive_p macro
* ext/tk/tcltklib.c (rb_thread_alive_p): turn into a macro, so that same code is generated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/tk/tcltklib.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index b3d717f0fa..a8cc1222b6 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -270,11 +270,7 @@ static CONST86 Tcl_ObjType *Tcl_ObjType_String;
#endif
#ifndef HAVE_RB_THREAD_ALIVE_P
-static VALUE
-rb_thread_alive_p(VALUE thread)
-{
- return rb_funcall(thread, ID_alive_p, 0, 0);
-}
+#define rb_thread_alive_p(thread) rb_funcall2((thread), ID_alive_p, 0, NULL)
#endif
/* safe Tcl_Eval and Tcl_GlobalEval */