X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=common.h;h=069f67754eac4c2ab9e98fff23e6bc0f0fc3b137;hb=a77978e0c9bc91ea3d7b192ce136621e78d4ec5b;hp=ac9d87ed34536dedcb5d436924fed43c484fa8f7;hpb=30498ebe775df3854f28946b1373da948bd190a3;p=vor.git 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