X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fdebug.h;h=6085003458303ee2153dfc81bc4c323758cc8ee7;hb=c46074c1fc66612c5ea0bfa1f4441491e296703d;hp=a0bfecba4f3854f0b94b2fc091d6b01d5b25f6a7;hpb=617dcc71d9a71663f63fb56ffac2505b45bf91b9;p=physics.git
diff --git a/src/debug.h b/src/debug.h
index a0bfecb..6085003 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -1,17 +1,40 @@
+/*
+ * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com.
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
#ifndef DEBUG_H
#define DEBUG_H
#include
-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();
+}
+
+void DASSERT(bool fBreak);
// comment out when not debugging
#define DEBUGGING
-// comment out to prevent FPS and UPS printing
-#define FPSUPS
-
#endif // DEBUG_H