X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLog.hh;h=221827f4eb86fcbcb03e4b6b628124b48e6dc8d4;hp=09130ed5010aeb535eef7abc09802d959494c98e;hb=cfe38a72ab859538db6269bc9b97f55e8f1f8709;hpb=ca0f7bdfba63140dca0bd20586d31980f3938eb2 diff --git a/src/Moof/Log.hh b/src/Moof/Log.hh index 09130ed..221827f 100644 --- a/src/Moof/Log.hh +++ b/src/Moof/Log.hh @@ -44,11 +44,13 @@ * @param X test to perform */ -#if ! NDEBUG +#undef ASSERT + +#if NDEBUG +#define ASSERT(X) +#else #define ASSERT(X) if (!(X)) Mf::logError("false assertion at %s:%d, " #X, \ __FILE__, __LINE__), exit(1) -#else -#define ASSERT(X) #endif @@ -114,6 +116,7 @@ void logInfo(const char* fmt, ...); void logDebug(const char* fmt, ...); +void logScript(const char* fmt, ...); class Script; int logScript(Script& script); void importLogScript(Script& script);