From 291803b886fdbe2ff49dd248c19f38b3d7b68524 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 22 Apr 2024 23:27:07 +0200 Subject: Add usage() --- include/errors.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/errors.h b/include/errors.h index 961ecf1..c8576f0 100644 --- a/include/errors.h +++ b/include/errors.h @@ -5,6 +5,9 @@ #include "_attrs.h" +void usage(const char *, ...); +#define usage(...) usage(__VA_ARGS__, nullptr) + [[gnu::format(printf, 1, 2)]] void warn(const char *, ...); void vwarn(const char *, va_list); -- cgit v1.2.3