mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 09:45:06 +00:00
29 lines
492 B
C
29 lines
492 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdarg.h>
|
||
|
#include "libbench2/bench.h"
|
||
|
|
||
|
void ovtpvt(const char *format, ...)
|
||
|
{
|
||
|
va_list ap;
|
||
|
|
||
|
va_start(ap, format);
|
||
|
if (verbose >= 0)
|
||
|
vfprintf(stdout, format, ap);
|
||
|
va_end(ap);
|
||
|
fflush(stdout);
|
||
|
}
|
||
|
|
||
|
void ovtpvt_err(const char *format, ...)
|
||
|
{
|
||
|
va_list ap;
|
||
|
|
||
|
va_start(ap, format);
|
||
|
if (verbose >= 0) {
|
||
|
fflush(stdout);
|
||
|
vfprintf(stderr, format, ap);
|
||
|
}
|
||
|
va_end(ap);
|
||
|
fflush(stdout);
|
||
|
}
|