]> Dogcows Code - chaz/yoink/blobdiff - src/moof/log.hh
configuration cleanup and bugfixes
[chaz/yoink] / src / moof / log.hh
index 2679b37306694763e1b0886a904a660f549f5fff..a32daadd8b13b79cc5d8c83dce762d802c67c856 100644 (file)
 #include <iostream>
 
 
-#undef ASSERT
-#if NDEBUG
-#define ASSERT(X)
-#else
-/**
- * Macro which tests an assertion and issues a log_error() and exits if the
- * assertion is false.
- * \param X test to perform
- */
-#define ASSERT(X) if (!(X)) moof::log_error \
-       << "false assertion at " << __FILE__ << ":" << __LINE__ << ", " \
-       << #X, exit(1)
-#endif
-
-
 namespace moof {
 
 
@@ -142,7 +127,7 @@ private:
 
        template <class T> friend std::ostream& operator << (log&, const T&);
 
-       static enum level       gLevel;
+       static enum level       global_level_;
 
        enum level                      level_;
        const char*                     prefix_;
@@ -160,7 +145,7 @@ extern class log log_info;
 template <class T>
 inline std::ostream& operator << (class log& log, const T& item)
 {
-       if (log::gLevel < log.level_) return null_log;
+       if (log::global_level_ < log.level_) return null_log;
        return moof::log << log.prefix_ << item;
 }
 
This page took 0.018699 seconds and 4 git commands to generate.