1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-28 15:38:30 +02:00
VVVVVV/desktop_version/src/Vlogging.h
Misa ac85f57441 Add colors to logging
This includes the bold as well.

INFO is just default, WARN is yellow, ERROR is red.

We try to automatically detect if the output is a TTY (and thus supports
colors), and don't emit colors if so. Windows 10 supports ANSI color
codes starting with a specific build, but we don't care to emit whatever
garbage Microsoft invented for builds older than that.
2021-09-01 14:34:55 -07:00

22 lines
290 B
C

#ifndef VLOGGING_H
#define VLOGGING_H
#ifdef __cplusplus
extern "C"
{
#endif
void vlog_init(void);
int vlog_info(const char* text, ...);
int vlog_warn(const char* text, ...);
int vlog_error(const char* text, ...);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* VLOGGING_H */