aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-22 23:27:07 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-22 23:31:01 +0200
commit291803b886fdbe2ff49dd248c19f38b3d7b68524 (patch)
treeb3d6e706fb8eabb7df391ebce3af322b56e2ab23 /include
parentc62ed622ee5612e155e4176767ab1028f89a3b82 (diff)
Add usage()
Diffstat (limited to 'include')
-rw-r--r--include/errors.h3
1 files changed, 3 insertions, 0 deletions
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);