1
0
Fork 0

Spectre/System/Log: adding debug method.

This commit is contained in:
Henrik Hautakoski 2020-10-13 18:06:21 +02:00
parent eb1f6303f1
commit 1a6cee0b25
2 changed files with 20 additions and 2 deletions

View file

@ -15,6 +15,7 @@ public :
T_WARNING = 1 << 0,
T_CRITICAL = 1 << 1,
T_ERROR = 1 << 2,
T_DEBUG = 1 << 3
};
static void info(const char *message, ...);
@ -23,6 +24,8 @@ public :
static int error(const char *message, ...);
static void debug(const char *message, ...);
private :
static void writeln(Type type, const char *fmt, va_list args);