mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-18 02:25:11 +00:00
54e93db207
not reliable yet
28 lines
492 B
C
28 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);
|
|
}
|