From 5b5f6321c743e9a521e45865312a76ae0bffe450 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 12 Nov 2023 19:19:51 +0200 Subject: start implementing new generics handling + Still requires a lot of fixes here and there --- src/debug.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/debug.c') diff --git a/src/debug.c b/src/debug.c index ee410be..2b993bf 100644 --- a/src/debug.c +++ b/src/debug.c @@ -169,6 +169,16 @@ void internal_error(const char *fmt, ...) va_end(args); } +void internal_warn(const char *fmt, ...) +{ + va_list args; + va_start(args, fmt); + fprintf(stderr, "internal warning: "); + vfprintf(stderr, fmt, args); + fprintf(stderr, "\n"); + va_end(args); +} + /** * Workhorse for type_str(). * -- cgit v1.3