aboutsummaryrefslogtreecommitdiff
path: root/src/common/cerr.h
blob: 869c9e29873ac76c6462ca1ecf27143ae86d1ca4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef AHOY_COMMON_CERR_H
#define AHOY_COMMON_CERR_H

#include <stddef.h>

void cerrinit(const char *);

[[noreturn, gnu::nonnull, gnu::format(printf, 1, 2)]]
void die(const char *, ...);

[[noreturn, gnu::nonnull, gnu::format(printf, 1, 2)]]
void diex(const char *, ...);

[[noreturn, gnu::nonnull, gnu::format(printf, 3, 4)]]
void die_with_off(const char *, size_t, const char *, ...);

#endif /* !AHOY_COMMON_CERR_H */