Esempio n. 1
0
File: error.c Progetto: knugie/ruby
/* rb_compile_warning() reports only in verbose mode */
void
rb_compile_warning(const char *file, int line, const char *fmt, ...)
{
    va_list args;

    if (!RTEST(ruby_verbose)) return;

    va_start(args, fmt);
    compile_warn_print(file, line, fmt, args);
    va_end(args);
}
Esempio n. 2
0
/* rb_compile_warning() reports only in verbose mode */
void
rb_compile_warning(const char *file, int line, const char *fmt, ...)
{
    char buf[BUFSIZ];
    va_list args;

    if (!RTEST(ruby_verbose)) return;

    snprintf(buf, BUFSIZ, "warning: %s", fmt);

    va_start(args, fmt);
    compile_warn_print(file, line, buf, args);
    va_end(args);
}