diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-08-26 15:20:15 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-08-27 15:52:26 +0900 |
commit | 703783324c16b8b2b50210d1a7d1119902abbb8b (patch) | |
tree | d594ba9029a1ddcee223fcb2f39be07ef20daca1 /internal.h | |
parent | 5c7c2d9951f2512ca10ea38fecc48d8ac67502e6 (diff) | |
download | ruby-703783324c16b8b2b50210d1a7d1119902abbb8b.tar.gz |
rb_ensure now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is
dangerous and should be extinct. This commit deletes ANYARGS from
rb_ensure, which also revealed many arity / type mismatches.
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 01009b616a..bd9ee44ddc 100644 --- a/internal.h +++ b/internal.h @@ -1469,7 +1469,7 @@ struct rb_thread_struct; /* cont.c */ VALUE rb_obj_is_fiber(VALUE); void rb_fiber_reset_root_local_storage(struct rb_thread_struct *); -void ruby_register_rollback_func_for_ensure(VALUE (*ensure_func)(ANYARGS), VALUE (*rollback_func)(ANYARGS)); +void ruby_register_rollback_func_for_ensure(VALUE (*ensure_func)(VALUE), VALUE (*rollback_func)(VALUE)); /* debug.c */ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2); |