covid-sim
src
Error.h
1
#ifndef COVIDSIM_ERROR_H_INCLUDED_
2
#define COVIDSIM_ERROR_H_INCLUDED_
3
4
#define ERR_CRITICAL(msg) ErrorCritical(msg, __FILE__, __LINE__)
5
#define ERR_CRITICAL_FMT(fmt, ...) ErrorCritical(fmt, __FILE__, __LINE__, __VA_ARGS__)
6
7
#ifdef _MSC_VER
8
__declspec(noreturn)
9
#endif
10
void
ErrorCritical(
const
char
* msg,
const
char
* file,
int
line, ...)
11
#ifdef __GNUC__
12
__attribute__ ((noreturn)) __attribute__ ((format (printf, 1, 4)))
13
#endif
14
;
15
16
#endif // COVIDSIM_ERROR_H_INCLUDED_
Generated by
1.8.14