X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=blobdiff_plain;f=src%2Fdebug.h;h=2862cc2c813879741b8d05f24e025d5997c914d5;hb=8e89e1d3c7894ff40d3871f3a1ff72327b7de6bb;hp=c8dfdb466d6d2b2f38f0aa8f0cda499b64e89653;hpb=379cc454ab369431b3bdd2fe97cb2e6a1d68c26d;p=physics.git
diff --git a/src/debug.h b/src/debug.h
index c8dfdb4..2862cc2 100644
--- a/src/debug.h
+++ b/src/debug.h
@@ -1,12 +1,46 @@
+/*
+ * 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
-// comment out when not debugging
-#define DEBUGGING
-
#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 suppress warnings
+#define WARNINGS
+
+// comment out to prevent FPS and UPS printing
+#define FPSUPS
+
+
#endif // DEBUG_H