diff options
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,7 +11,10 @@ #define MIN(x,y) ((x) > (y) ? (y) : (x)) #define MAX(x,y) ((x) < (y) ? (y) : (x)) -#define NULLFREE(p) do { free(p); p = NULL; } while (0) +#define ERR(...) fprintf(stderr, "ERR: " __VA_ARGS__) + +#define NFREE(p) do { free(p); p = NULL; } while (0) +#define NFCLOSE(f) do { fclose(f); f = NULL; } while (0) #define MHASHLEN 40 |
