added some thread safty ... much more still needed
[physics.git] / src / debug.h
index d1bc04d..c9c5e7a 100644 (file)
 #define DEBUG_H
 
 #include <iostream>
-using std::cerr;
 using std::cout;
+using std::cerr;
 using std::endl;
 
+void DPF(int level, const char* pstr);
+
+namespace debug
+{
+    void init();
+    void clean();
+}
 
 // comment out when not debugging
 #define DEBUGGING
@@ -34,7 +41,4 @@ using std::endl;
 #define FPSUPS
 
 
-void DPF(int level, const char* pstr);
-
-
 #endif // DEBUG_H