X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=common.h;h=28d9ea0cdc105c36c61551729619f2155ffe66df;hp=be0910e33a23c728bbbac89f3c721a4cf0d89f31;hb=148882a3cc520f34616a1175ed157fe258d68dcc;hpb=e0fab1bd78914a12ee88f2a9fcfca9f28a1df0f2 diff --git a/common.h b/common.h index be0910e..28d9ea0 100644 --- a/common.h +++ b/common.h @@ -1,17 +1,10 @@ #ifndef VOR_COMMON_H #define VOR_COMMON_H -#ifndef NULL -#define NULL 0 -#endif +#include +#include -#ifndef true -#define true 1 -#endif - -#ifndef false -#define false 0 -#endif +#define NONE (~0) #ifndef max #define max(a, b) ((a) > (b) ? (a) : (b)) @@ -28,10 +21,8 @@ #define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;} #define NULLERROR(a) CONDERROR((a) == NULL) -#ifndef DEBUG -#define DEBUG 0 +#ifdef WIN32 +# include #endif -#define debug(x) if(DEBUG) { x; } - #endif // VOR_COMMON_H