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:
parent
8bb716ab91
commit
1d91feaf13
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue