X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=common.h;h=069f67754eac4c2ab9e98fff23e6bc0f0fc3b137;hp=ac9d87ed34536dedcb5d436924fed43c484fa8f7;hb=2b5dd5bc0eb1739dd744de6f565d0f3a7ae02c95;hpb=30498ebe775df3854f28946b1373da948bd190a3 diff --git a/common.h b/common.h index ac9d87e..069f677 100644 --- 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