1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/refinement/refinement.c
naruse 811efc8276 Add declaration of rb_warn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-12-07 02:55:28 +00:00

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();
}