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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
15 lines
463 B
C
15 lines
463 B
C
void ruby_Init_refinement(void);
|
|
#ifdef __GNUC__
|
|
#define PRINTF_ARGS(decl, string_index, first_to_check) \
|
|
decl __attribute__((format(printf, string_index, first_to_check)))
|
|
#else
|
|
#define PRINTF_ARGS(decl, string_index, first_to_check) decl
|
|
#endif
|
|
PRINTF_ARGS(void rb_warn(const char*, ...), 1, 2);
|
|
|
|
void
|
|
Init_refinement(void)
|
|
{
|
|
rb_warn("Refinements are experimental, and the behavior may change in future versions of Ruby!");
|
|
ruby_Init_refinement();
|
|
}
|