1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Limit strict RUBY_METHOD_FUNC in C++

Limit strict function signature check with RUBY_METHOD_FUNC in C++
to bundled libraries only.  [Bug #16271]
This commit is contained in:
Nobuyoshi Nakada 2019-10-23 20:13:34 +09:00
parent 8bb716ab91
commit 1d91feaf13
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -2855,7 +2855,7 @@ RB_METHOD_DEFINITION_DECL(rb_define_global_function, (1,2), (const char *name),
#endif
#if !defined(__cplusplus) || defined(RB_METHOD_DEFINITION_DECL)
#if defined(RUBY_DEVEL) && RUBY_DEVEL && (!defined(__cplusplus) || defined(RB_METHOD_DEFINITION_DECL))
# define RUBY_METHOD_FUNC(func) (func)
#else
# define RUBY_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))(func))