From 2e7e9acfa38289a2128b466db0561e2caa573ef8 Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 7 Jul 2002 23:37:32 +0000 Subject: [PATCH] added a qtypes.h for little things like qbyte and such git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2007 d7cf8633-e32d-0410-b094-e92efae38249 --- qtypes.h | 37 +++++++++++++++++++++++++++++++++++++ quakedef.h | 34 ++-------------------------------- 2 files changed, 39 insertions(+), 32 deletions(-) create mode 100644 qtypes.h diff --git a/qtypes.h b/qtypes.h new file mode 100644 index 00000000..5e1d5750 --- /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 diff --git a/quakedef.h b/quakedef.h index 8209817a..e6c80d41 100644 --- a/quakedef.h +++ b/quakedef.h @@ -31,44 +31,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include -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 -- 2.39.2