summaryrefslogtreecommitdiff
path: root/src/logerr.h
blob: 77f98bd3b66b6dd9795ae9d3136edabd31d0951a (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
#ifndef LOGERR_H
#define LOGERR_H

#include "config.h"

#include <stdio.h>


void
vlogerr(

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

#define logerr(...) vlogerr(__FILE__, __func__, __LINE__, stderr, __VA_ARGS__)


#endif