Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
vor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sprites now have a flag field (MOVE/DRAW/COLLIDE).
[vor.git]
/
common.h
diff --git
a/common.h
b/common.h
index
be0910e
..
28d9ea0
100644
(file)
--- a/
common.h
+++ b/
common.h
@@
-1,17
+1,10
@@
#ifndef VOR_COMMON_H
#define VOR_COMMON_H
#ifndef VOR_COMMON_H
#define VOR_COMMON_H
-#ifndef NULL
-#define NULL 0
-#endif
+#include <stdbool.h>
+#include <stddef.h>
-#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))
#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)
#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 <windows.h>
#endif
#endif
-#define debug(x) if(DEBUG) { x; }
-
#endif // VOR_COMMON_H
#endif // VOR_COMMON_H