rpgxef/code/game/g_logger.h

20 lines
449 B
C
Raw Normal View History

2013-08-24 23:45:11 +00:00
#ifndef G_LOGGER_H_
#define G_LOGGER_H_
#include "g_local.h"
enum {
LL_ERROR,
LL_WARN,
LL_INFO,
LL_DEBUG,
LL_TRACE,
LL_ALWAYS
};
#define G_LocLogger(X,...) _G_LocLogger(__FILE__, __LINE__, X, __VA_ARGS__)
void QDECL G_Logger(int level, char* fmt, ...) __attribute__ ((format (printf, 2, 3)));
void QDECL _G_LocLogger(const char* file, int line, int level, char* fmt, ...) __attribute__ ((format (printf, 4, 5)));
#endif /* G_LOGGER_H_ */