aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c10
1 files changed, 10 insertions, 0 deletions
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().
*