X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/18c831dcd0ae4d660c70ccac69d27ed2a97851be..4d4fb2913be1bb83a02e64fbb4dd0b4a6355354a:/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 -------------------------------------------------*/