Skip to content

Commit

Permalink
Limit strict RUBY_METHOD_FUNC in C++
Browse files Browse the repository at this point in the history
Limit strict function signature check with RUBY_METHOD_FUNC in C++
to bundled libraries only.  [Bug #16271]
  • Loading branch information
nobu committed Oct 23, 2019
1 parent 8bb716a commit 1d91fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ruby/ruby.h
Expand Up @@ -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))
Expand Down

0 comments on commit 1d91fea

Please sign in to comment.