summaryrefslogtreecommitdiff
path: root/include/merror.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-10-09 12:06:16 -0400
committerFreya Murphy <freya@freyacat.org>2024-10-09 12:06:16 -0400
commit94617351edadc7c2207f002a34a1aeb4bdca3005 (patch)
treea64e5d768ccbd573dd2d572195494936258c73bf /include/merror.h
parentupdate mld comments (diff)
downloadmips-94617351edadc7c2207f002a34a1aeb4bdca3005.tar.gz
mips-94617351edadc7c2207f002a34a1aeb4bdca3005.tar.bz2
mips-94617351edadc7c2207f002a34a1aeb4bdca3005.zip
add bug logging fn
Diffstat (limited to 'include/merror.h')
-rw-r--r--include/merror.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/merror.h b/include/merror.h
index 4b32159..d2540ff 100644
--- a/include/merror.h
+++ b/include/merror.h
@@ -14,6 +14,7 @@
#define __DEBUG 1
#define __WARNING 2
#define __ERROR 3
+#define __BUG 4
__attribute__((format(printf, 4, 5)))
void __log_impl_pos(int line, int column, int type, const char *format, ...);
@@ -25,6 +26,9 @@ void __log_impl(int type, const char *format, ...);
#define WARNING(format, ...) \
__log_impl(__WARNING, format, ##__VA_ARGS__)
+#define BUG(format, ...) \
+ __log_impl(__BUG, format, ##__VA_ARGS__)
+
#define ERROR(format, ...) \
__log_impl(__ERROR, format, ##__VA_ARGS__)