2021-11-30 21:29:18 -06:00
|
|
|
#ifndef LOG_H
|
|
|
|
#define LOG_H
|
|
|
|
|
2022-01-19 16:43:21 -06:00
|
|
|
#include <SDL2/SDL_log.h>
|
2021-11-30 21:29:18 -06:00
|
|
|
|
|
|
|
#define ERROR_BUFFER 2048
|
|
|
|
|
|
|
|
#define YughLog(cat, pri, msg, ...) mYughLog(cat, pri, msg, __LINE__, __FILE__, __VA_ARGS__)
|
|
|
|
|
|
|
|
void mYughLog(int category, int priority, const char *message,
|
|
|
|
int line, const char *file, ...);
|
|
|
|
|
|
|
|
void FlushGLErrors();
|
|
|
|
|
|
|
|
int TestSDLError(int sdlErr);
|
|
|
|
|
|
|
|
#endif
|