diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-10 02:58:36 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-08-10 02:58:36 +0000 |
commit | 43384ae9788be243746849ee54d9f5c8f7e0412b (patch) | |
tree | e696a34c00d2d333a01e85e91e964e2f8a40e707 /internal.h | |
parent | 57199f2125ce8e2043420af6ccc3354e1d411c0f (diff) |
Fiber#to_s (#inspect) return richer information.
* cont.c (fiber_to_s): return with block and status information.
* proc.c (proc_to_s_): removed and introduce rb_block_to_s() function
to return block information string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 90758f86a4..895b482d82 100644 --- a/internal.h +++ b/internal.h @@ -1495,6 +1495,7 @@ int rb_block_arity(void); int rb_block_min_max_arity(int *max); VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val); VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val, int min_argc, int max_argc); +VALUE rb_block_to_s(VALUE self, const struct rb_block *block, const char *additional_info); /* process.c */ #define RB_MAX_GROUPS (65536) |