X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/5b078c11a05739c5869a6fff858019a7c520ca83..3832000d8a0d417dbfda0ca2d26bc7d66f7f4741:/ui/report.h diff --git a/ui/report.h b/ui/report.h index 90128fb..4266cc2 100644 --- a/ui/report.h +++ b/ui/report.h @@ -32,6 +32,12 @@ extern "C" { #endif +/*----- Header files ------------------------------------------------------*/ + +#ifndef MLIB_MACROS_H +# include "macros.h" +#endif + /*----- Functions provided ------------------------------------------------*/ /* --- @moan@ --- * @@ -44,7 +50,8 @@ * Use: Reports an error. */ -extern void moan(const char *f, ...); +extern void PRINTF_LIKE(1, 2) + moan(const char *f, ...); /* --- @die@ --- * * @@ -58,7 +65,8 @@ extern void moan(const char *f, ...); * permanent. */ -extern void die(int status, const char *f, ...); +extern void PRINTF_LIKE(2, 3) NORETURN + die(int status, const char *f, ...); /*----- That's all, folks -------------------------------------------------*/