Files
wagic/projects/mtg/include/Logger.h
T
wagic.the.homebrew@gmail.com 5d907f5abe Erwan
- Added a possibility to put a file "Res.txt" instead of the folder "Res". The file Res.txt is a simple 1 line text file, telling where to find the Res folder, terminated by "/". For example: "../../wagic_res".
This addresses issue 428 . This could also help us in the future, to develop mods.
2010-11-07 09:26:29 +00:00

20 lines
293 B
C++

#ifndef _LOGGER_H
#define _LOGGER_H_
//TODO Remove this and use the jge logging facility (same system)
#define DOLOG
#ifdef DOLOG
#define LOG_FILE "debug.txt"
class Logger{
public:
static void Log(const char * text);
};
#define LOG(x) Logger::Log(x);
#else
#define LOG(x)
#endif
#endif