mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add declaration of rb_warn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0bc733d9e3
commit
811efc8276
1 changed files with 7 additions and 0 deletions
|
@ -1,4 +1,11 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue