JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
oops, fixed off-by-one error in new_engine_dots
[vor.git] / common.h
index ac9d87e..069f677 100644 (file)
--- a/common.h
+++ b/common.h
@@ -25,4 +25,7 @@
 #define abs(a) ((a)<=0 ? -(a) : (a))
 #endif
 
+#define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;}
+#define NULLERROR(a) CONDERROR((a) == NULL)
+
 #endif // VOR_COMMON_H