prosperon/source/engine/log.h
2022-01-25 15:22:03 +00:00

17 lines
342 B
C
Executable file

#ifndef LOG_H
#define LOG_H
#include <SDL2/SDL_log.h>
#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