limine/common/lib/print.h

15 lines
273 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);
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