added a qtypes.h for little things like qbyte and such
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Jul 2002 23:37:32 +0000 (23:37 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 7 Jul 2002 23:37:32 +0000 (23:37 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2007 d7cf8633-e32d-0410-b094-e92efae38249

qtypes.h [new file with mode: 0644]
quakedef.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
index 8209817..e6c80d4 100644 (file)
@@ -31,44 +31,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include <stdlib.h>
 #include <setjmp.h>
 
-extern char *buildstring;
-
-typedef unsigned char qbyte;
-
-#undef true
-#undef false
-
-typedef enum {false, true} qboolean;
+#include "qtypes.h"
 
-#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
+extern char *buildstring;
 
 #define GAMENAME "id1"
 
 #define MAX_NUM_ARGVS  50
 
-// up / down
-#define        PITCH   0
-
-// left / right
-#define        YAW             1
-
-// fall over
-#define        ROLL    2
-
 
 #define        MAX_QPATH               128                     // max length of a quake game pathname
 #define        MAX_OSPATH              1024            // max length of a filesystem pathname