rulimine/common/lib/print.h

12 lines
230 B
C
Raw Normal View History

2020-05-10 01:38:27 +03:00
#ifndef __LIB__PRINT_H__
#define __LIB__PRINT_H__
#include <stdarg.h>
void print(const char *fmt, ...);
void vprint(const char *fmt, va_list args);
2021-05-11 07:46:42 +03:00
#define printv(FMT, ...) ({ if (verbose) print(FMT, ##__VA_ARGS__); })
2020-05-10 01:38:27 +03:00
#endif