mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-02-24 13:01:10 +00:00
19 lines
449 B
C
19 lines
449 B
C
#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_ */
|