diff options
Diffstat (limited to 'src/helpers.c')
-rw-r--r-- | src/helpers.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helpers.c b/src/helpers.c index ad7228e..8485dc6 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -3,6 +3,12 @@ #include <stdlib.h> #include <string.h> +void die_lz(int code, const char *msg) { + if (code < 0) { + die(msg); + } +} + void die(const char *msg) { fprintf(stderr, "panic: "); perror(msg); |