summaryrefslogtreecommitdiff
path: root/ext/refinement/refinement.c
blob: 44ffd2a0b832260f309185a3f79beecfba904f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
}