JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
* config.h: added CONDERROR and NULLERROR macros.
[vor.git] / config.h
index 16ea5fe..62ba253 100644 (file)
--- a/config.h
+++ b/config.h
@@ -46,4 +46,7 @@
 #define NULL 0
 #endif
 
+#define CONDERROR(a) if((a)) {initerror = strdup(SDL_GetError());return 1;}
+#define NULLERROR(a) CONDERROR((a) == NULL)
+
 #endif // VOR_CONFIG_H