From 6abd4e80244a7fa73a7213101b1d61e4df1b6689 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 9 Mar 2025 17:30:22 -0400 Subject: Add fail_text() so there isn't a hacky/broken fail() with promotion to CString --- stdlib/stdlib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stdlib/stdlib.c') diff --git a/stdlib/stdlib.c b/stdlib/stdlib.c index a2c08ff0..d48255b7 100644 --- a/stdlib/stdlib.c +++ b/stdlib/stdlib.c @@ -531,6 +531,11 @@ public _Noreturn void fail(const char *fmt, ...) _exit(1); } +public _Noreturn void fail_text(Text_t message) +{ + fail("%k", &message); +} + __attribute__((format(printf, 4, 5))) public _Noreturn void fail_source(const char *filename, int64_t start, int64_t end, const char *fmt, ...) { -- cgit v1.2.3