X-Git-Url: https://jasonwoof.com/gitweb/?p=vor.git;a=blobdiff_plain;f=config.h;h=62ba2532bf0bf9e05621f7a0aef8858f552771de;hp=16ea5feaf862b8f3e323ad05b5e279987b1b10c1;hb=46dacbe75dac20a1c6e1b61a2eb99ca25fc971ec;hpb=e3ee5ceeccdd8f3b82c7ec2df50e3a9f2c77914d diff --git a/config.h b/config.h index 16ea5fe..62ba253 100644 --- 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