X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FLog.hh;h=d3aa555aac4c5fa4b81076de90a595612ca28883;hp=09130ed5010aeb535eef7abc09802d959494c98e;hb=71bd9dbaf1c1e3c55a9f63392a73865d8aeee7d4;hpb=ca0f7bdfba63140dca0bd20586d31980f3938eb2 diff --git a/src/Moof/Log.hh b/src/Moof/Log.hh index 09130ed..d3aa555 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,9 +116,10 @@ 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); +void importLogPrintFunction(Script& script); } // namespace Mf