diff options
author | Marvin Borner | 2023-04-17 12:37:15 +0200 |
---|---|---|
committer | Marvin Borner | 2023-04-17 12:37:15 +0200 |
commit | c8505852fff816f8e319cb7492ff1fee55f33f23 (patch) | |
tree | fc7cb822f53605e0b5835aab8f217bddaa981554 /src/term.c | |
parent | f8e807e657766342ae4931d77edce8f1a5d27b56 (diff) |
Added logging and verbosity flag
Diffstat (limited to 'src/term.c')
-rw-r--r-- | src/term.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -6,14 +6,13 @@ #include <string.h> #include <term.h> +#include <log.h> struct term *new_term(term_type type) { struct term *term = malloc(sizeof(*term)); - if (!term) { - fprintf(stderr, "Out of memory!\n"); - abort(); - } + if (!term) + fatal("Out of memory!\n"); term->type = type; return term; } |