58 static void Init(
void );
62 static void Error(
const char *fmt, ... );
63 static void Warning(
const char *fmt, ... );
75 typedef unsigned char byte;
76 typedef unsigned short word;
88 #define NULL ((void *)0)
92 #define BIT( num ) ( 1 << ( num ) )
95 #define MAX_STRING_CHARS 1024 // max length of a string
98 #define MAX_WORLD_COORD ( 128 * 1024 )
99 #define MIN_WORLD_COORD ( -128 * 1024 )
100 #define MAX_WORLD_SIZE ( MAX_WORLD_COORD - MIN_WORLD_COORD )
132 void BigRevBytes(
void *bp,
int elsize,
int elcount );
145 void AssertFailed(
const char *file,
int line,
const char *expression );
147 #define assert( X ) if ( X ) { } else AssertFailed( __FILE__, __LINE__, #X )
158 template<
class T> ID_INLINE
T Max(
T x,
T y ) {
return ( x > y ) ? x :
y; }
159 template<
class T> ID_INLINE
T Min(
T x,
T y ) {
return ( x < y ) ? x :
y; }
void AssertFailed(const char *file, int line, const char *expression)
static void Warning(const char *fmt,...)
static void ShutDown(void)
ID_INLINE T Max(T x, T y)
void UnpackColor(const dword color, idVec3 &unpackedColor)
idException(const char *text="")
void LittleBitField(void *bp, int elsize)
bool Swap_IsBigEndian(void)
int IntForSixtets(byte *in)
static class idFileSystem * fileSystem
void SixtetsForInt(byte *out, int src)
void LittleRevBytes(void *bp, int elsize, int elcount)
dword PackColor(const idVec3 &color)
short LittleShort(short l)
char error[MAX_STRING_CHARS]
static class idCVarSystem * cvarSystem
static void Error(const char *fmt,...)
float LittleFloat(float l)
ID_INLINE T Min(T x, T y)
void BigRevBytes(void *bp, int elsize, int elcount)
static class idCommon * common