X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=common.h;h=b0f32ff1dbd906dca4d1fbab52e90294b50a4854;hp=be0910e33a23c728bbbac89f3c721a4cf0d89f31;hb=HEAD;hpb=e0fab1bd78914a12ee88f2a9fcfca9f28a1df0f2 diff --git a/common.h b/common.h index be0910e..b0f32ff 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 - -#ifndef true -#define true 1 -#endif +#include +#include -#ifndef false -#define false 0 -#endif +#define NONE (~0) #ifndef max #define max(a, b) ((a) > (b) ? (a) : (b)) @@ -28,10 +21,4 @@ #define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;} #define NULLERROR(a) CONDERROR((a) == NULL) -#ifndef DEBUG -#define DEBUG 0 -#endif - -#define debug(x) if(DEBUG) { x; } - #endif // VOR_COMMON_H