So many changes. Broken.
[invirt/third/libt4.git] / include / debug.h
similarity index 88%
rename from threaded_log.h
rename to include/debug.h
index 9a83bfb..f42be6b 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef threaded_log_h
-#define threaded_log_h
+#ifndef debug_h
+#define debug_h
 
 #include <string>
 #include <ostream>
@@ -20,7 +20,10 @@ lock _log_lock();
 
 #define LOG_NONMEMBER _log_prefix(locked_ostream{std::cerr, _log_lock()}, __FILE__, __func__)
 #define LOG           _log_member(LOG_NONMEMBER, (const void *)this)
+#define DEBUG_LOG LOG
 
 #define IF_LEVEL(level) if(_log_debug_level() >= abs(level))
 
+string hex_string(const string & s);
+
 #endif