summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
author卜部昌平 <[email protected]>2019-08-29 10:40:40 +0900
committer卜部昌平 <[email protected]>2019-08-29 18:34:09 +0900
commit0b81e7d6e2810adac081965f0da1d8064888c0bd ()
tree0ad28e52f3395e56d0a7c9c0a704c3195aa8c99c /include
parent0766f67168cf248b698a8b2cde1c22c526374be7 (diff)
drop-in type check for rb_define_method_id
We can check the function pointer passed to rb_define_method_id like how we do so in rb_define_method. This method is relatively rarely used so there are less problems found than the other APIs.
-rw-r--r--include/ruby/intern.h45
1 files changed, 45 insertions, 0 deletions
@@ -1003,4 +1003,49 @@ RUBY_SYMBOL_EXPORT_END
} /* extern "C" { */
#endif
#endif /* RUBY_INTERN_H */