-Werror implemented
[cparser] / diagnostic.h
1 #ifndef DIAGNOSTIC_H
2 #define DIAGNOSTIC_H
3
4 #include "token_t.h"
5
6 void diagnosticf(const char *fmt, ...);
7 void errorf(source_position_t pos, const char *fmt, ...);
8 void warningf(source_position_t pos, const char *fmt, ...);
9
10 extern unsigned diagnostic_count;
11 extern unsigned error_count;
12 extern unsigned warning_count;
13
14 /* true if warnings should be treated as errors */
15 extern bool warnings_are_errors;
16
17 #endif