forked from Nable80/wwwconf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.h
26 lines (19 loc) · 943 Bytes
/
error.h
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
/***************************************************************************
error.h - log&error handler header
-------------------
begin : Wed Mar 14 2001
copyright : (C) 2001 by Alexander Bilichenko
email : [email protected]
***************************************************************************/
#ifndef ERROR_H_INCLUDED
#define ERROR_H_INCLUDED
#define printhtmlerror() printwidehtmlerror(__FILE__, __LINE__, "")
#define printhtmlerrorat(s, p) printwidehtmlerror(__FILE__, __LINE__, s, p)
__attribute__ ((format (printf, 1, 2))) void print2log(const char *format, ...);
[[ noreturn ]] void printwidehtmlerror(const char *file, DWORD line, const char *s, const char *p = NULL);
extern int error_type;
#define ERROR_TYPE_HTML 0
#define ERROR_TYPE_XML 1
#define ERROR_TYPE_XMLFP 2
#define ERROR_TYPE_PLAIN 3
#endif