From 867a86a9ab31c0652a46759443fc98a49f91c8dd Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 22 Feb 2024 10:17:40 -0600 Subject: cleaning and switch to parray_t --- src/util.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/util.c (limited to 'src/util.c') diff --git a/src/util.c b/src/util.c new file mode 100644 index 0000000..3c2e279 --- /dev/null +++ b/src/util.c @@ -0,0 +1,13 @@ +#include "util.h" +#include +#include +#include "lua.h" + +void p_fatal(const char* m){ + fprintf(stderr, "%s[ fatal ] %s %s\n",color_red, m, color_reset); + exit(EXIT_FAILURE); +} + +void p_error(const char* m){ + fprintf(stderr, "%s[ error ]%s %s\n",color_red, color_reset, m); +} -- cgit v1.2.3