:: limine / common / lib / print.h 288 B raw

1
#ifndef LIB__PRINT_H__
2
#define LIB__PRINT_H__
3
4
#include <stdarg.h>
5
#include <stdbool.h>
6
7
extern bool verbose;
8
9
void print(const char *fmt, ...);
10
void vprint(const char *fmt, va_list args);
11
12
#define printv(FMT, ...) do { \
13
    if (verbose) print(FMT, ##__VA_ARGS__); \
14
} while (0)
15
16
#endif
tab: 248 wrap: offon