-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patherror.h
36 lines (26 loc) · 766 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
27
28
29
30
31
32
33
34
35
36
#ifndef ERROR_H
#define ERROR_H
#include "tokens.h"
#include "common.h"
#include "ast.h"
static void log(location_t loc);
static void log(TOK kind);
static void log(EXPR kind);
static void log(int i);
static void log(const char *s);
template <typename T, typename... Args>
static void log(T t, Args... args);
template <typename... Args>
static void internal_compiler_error(Args... args);
template <typename... Args>
static void warning(Args... args);
template <typename... Args>
static void error(Args... args);
template <typename... Args>
static void syntax_error_no_ln(Args... args);
template <typename... Args>
static void syntax_error(Args... args);
template <typename... Args>
static void fatal_error(Args... args);
#include "error.cpp"
#endif