2021-11-30 21:29:18 -06:00
|
|
|
#ifndef LOG_H
|
|
|
|
#define LOG_H
|
|
|
|
|
|
|
|
#define ERROR_BUFFER 2048
|
|
|
|
|
2022-02-06 10:14:57 -06:00
|
|
|
#define LOG_INFO 0
|
|
|
|
#define LOG_WARN 1
|
|
|
|
#define LOG_ERROR 2
|
|
|
|
#define LOG_CRITICAL 3
|
|
|
|
|
|
|
|
#define YughLog(cat, pri, msg, ...) mYughLog(cat, pri, __LINE__, __FILE__, msg, __VA_ARGS__)
|
2021-11-30 21:29:18 -06:00
|
|
|
|
2022-02-06 10:14:57 -06:00
|
|
|
void mYughLog(int category, int priority, int line, const char *file, const char *message, ...);
|
2021-11-30 21:29:18 -06:00
|
|
|
|
|
|
|
void FlushGLErrors();
|
|
|
|
|
|
|
|
int TestSDLError(int sdlErr);
|
|
|
|
|
2022-02-06 10:14:57 -06:00
|
|
|
#endif
|