12 lines
248 B
C++
12 lines
248 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
struct ErrorHandler {
|
|
ErrorHandler() : had_error{false} {};
|
|
void error(int line, const std::string &message);
|
|
void report(int line, const std::string &where, const std::string &message);
|
|
|
|
bool had_error;
|
|
};
|