gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/png2hicolorgb/src/logging.h
1 // logging.h
2
3 #ifndef _LOGGING_H
4 #define _LOGGING_H
5
6 #include "common.h"
7
8 enum output_level {
9 OUTPUT_LEVEL_DEBUG,
10 OUTPUT_LEVEL_VERBOSE,
11 OUTPUT_LEVEL_DEFAULT,
12 OUTPUT_LEVEL_ONLY_ERRORS,
13 };
14
15 void set_log_level(enum output_level new_output_level);
16 int log_(enum output_level level, char const *fmt, ...) FMT(printf, 2, 3);
17 #define DBG(...) log_(OUTPUT_LEVEL_DEBUG, __VA_ARGS__)
18 #define VERBOSE(...) log_(OUTPUT_LEVEL_VERBOSE, __VA_ARGS__)
19 #define LOG(...) log_(OUTPUT_LEVEL_DEFAULT, __VA_ARGS__)
20 #define ERR(...) log_(OUTPUT_LEVEL_ONLY_ERRORS, __VA_ARGS__)
21
22 #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.