]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - qtypes.h
added a qtypes.h for little things like qbyte and such
[xonotic/darkplaces.git] / qtypes.h
diff --git a/qtypes.h b/qtypes.h
new file mode 100644 (file)
index 0000000..5e1d575
--- /dev/null
+++ b/qtypes.h
@@ -0,0 +1,37 @@
+
+#ifndef QTYPES_H
+#define QTYPES_H
+
+typedef unsigned char qbyte;
+
+#undef true
+#undef false
+
+typedef enum {false, true} qboolean;
+
+#ifndef NULL
+#define NULL ((void *)0)
+#endif
+
+#ifndef FALSE
+#define FALSE 0
+#define TRUE 1
+#endif
+
+//define       PARANOID                        // speed sapping error checking
+#ifdef _DEBUG
+#define ASSERT(condition) if (!(condition)) Sys_Error("assertion (##condition) failed at " __FILE__ ":" __LINE__ "\n");
+#else
+#define ASSERT(condition)
+#endif
+
+// up / down
+#define        PITCH   0
+
+// left / right
+#define        YAW             1
+
+// fall over
+#define        ROLL    2
+
+#endif