mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
f526fc2cfa
commit
f25e55cb87
1 changed files with 1 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue