summaryrefslogtreecommitdiff
path: root/src/logerr.h
blob: 346989d20d0f02d54a9ec5ef25ebf899b9026250 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#define logerr(...) logerrf(__FILE__, __func__, __LINE__, __VA_ARGS__)



void
vflogerrf(
	const char *const file,
	const char *const function,
	const int lineno,
	FILE *restrict stream,
	const char *restrict format,
	va_list args
);

void
flogerrf(
	const char *const file,
	const char *const function,
	const int lineno,
	FILE *restrict stream,
	const char *restrict format,
	...
);

void
logerrf(
	const char *const file,
	const char *const function,
	const int lineno,
	const char *restrict format,
	...
);

void
logerr_set_stream(FILE *stream);