From 94617351edadc7c2207f002a34a1aeb4bdca3005 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 9 Oct 2024 12:06:16 -0400 Subject: add bug logging fn --- lib/error.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/error.c') diff --git a/lib/error.c b/lib/error.c index 3d88234..262896e 100644 --- a/lib/error.c +++ b/lib/error.c @@ -25,6 +25,9 @@ void __log_impl_pos(int line, int column, int type, const char *format, ...) case __ERROR: t = "\033[31merror:\033[0m"; break; + case __BUG: + t = "\033[31bug:\033[0m"; + break; } if (current_file != NULL) @@ -55,6 +58,9 @@ void __log_impl(int type, const char *format, ...) case __ERROR: t = "\033[31merror:\033[0m"; break; + case __BUG: + t = "\033[31bug:\033[0m"; + break; } if (current_file != NULL) -- cgit v1.2.3-freya