#ifndef LOG_H
#define LOG_H

#include <stdio.h>

#ifdef __cplusplus
extern "C" {
#endif
extern void Log(const char *format, ...);

#ifdef DEBUGMODE

#define LOG Log

#else

#define LOG 1 ? (void)0 : Log

#endif

#define LOGFILE "log.txt"

#ifdef ERROR
#undef ERROR
#endif
#ifdef WARNING
#undef WARNING
#endif

#define ERROR "--== Error ==-- "
#define WARNING "--== Warning ==-- "


#ifdef __cplusplus
}
#endif


#endif

