diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-09 07:55:12 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-06-09 07:55:12 +0000 |
commit | ce6c53d24d361f589169ffa49360e93be8c994a3 (patch) | |
tree | 644f88ce8d85f5bd7b7ef8f90691588add893b0e /eval.c | |
parent | bf0ccd4193499e38605d2834e17363b4f00d8967 (diff) | |
download | ruby-ce6c53d24d361f589169ffa49360e93be8c994a3.tar.gz ruby-ce6c53d24d361f589169ffa49360e93be8c994a3.tar.xz ruby-ce6c53d24d361f589169ffa49360e93be8c994a3.zip |
Thread#safe_level
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7294,6 +7294,9 @@ rb_thread_safe_level(thread) thread_t th; th = rb_thread_check(thread); + if (th == curr_thread) { + return INT2NUM(rb_safe_level()); + } return INT2NUM(th->safe); } |