diff options
author | 卜部昌平 <[email protected]> | 2019-08-28 18:19:11 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2019-08-29 18:34:09 +0900 |
commit | 7bcfd9189a6a0b2ad58fed988faaf795a4987893 (patch) | |
tree | 219f0c172e038ea6be1e103db11f7457dc703328 /eval_jump.c | |
parent | 7b6fde4258e700c0e0292bb091aa84a5e473342e (diff) |
drop-in type check for rb_define_global_function
We can check the function pointer passed to rb_define_global_function
like we do so in rb_define_method. It turns out that almost anybody
is misunderstanding the API.
Diffstat (limited to 'eval_jump.c')
-rw-r--r-- | eval_jump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eval_jump.c b/eval_jump.c index b010f44638..75d4ad0207 100644 --- a/eval_jump.c +++ b/eval_jump.c @@ -35,7 +35,7 @@ rb_call_end_proc(VALUE data) */ static VALUE -rb_f_at_exit(void) +rb_f_at_exit(VALUE _) { VALUE proc; |