Commit 1938b689 authored by alistert's avatar alistert

Made detailed logging optional at compile time.

parent ef91dd39
......@@ -177,5 +177,11 @@ EXTERN void log (const char *message, const char *detail);
EXTERN void log (const char *message, int number);
EXTERN void logError (const char *message, const char *detail);
#ifdef VERBOSE
#define LOG(x, y) log(x, y)
#else
#define LOG(x, y) x; y
#endif
#endif
......@@ -51,7 +51,7 @@ File::~File () {
fclose(f);
//log("Closed file", filePath);
LOG("Closed file", filePath);
delete[] filePath;
......@@ -70,7 +70,7 @@ bool File::open (const char * path, const char * name, bool write) {
if (f) {
//log("Opened file", filePath);
LOG("Opened file", filePath);
return true;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment