limine/common/lib/print.h

17 lines
292 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>
#include <stdbool.h>
extern bool verbose;
2020-05-10 01:38:27 +03:00
void print(const char *fmt, ...);
void vprint(const char *fmt, va_list args);
2022-08-27 00:30:00 +03:00
#define printv(FMT, ...) do { \
if (verbose) print(FMT, ##__VA_ARGS__); \
} while (0)
2021-05-11 07:46:42 +03:00
2020-05-10 01:38:27 +03:00
#endif