summaryrefslogtreecommitdiff
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h
index 2c0c4d09..1b4c7e12 100644
--- a/src/error.h
+++ b/src/error.h
@@ -81,6 +81,11 @@ string line_context(const string& line,
std::size_t pos = 0,
std::size_t end_pos = 0);
+string source_context(const path& file,
+ std::size_t pos,
+ std::size_t end_pos,
+ const string& prefix = "");
+
#define DECLARE_EXCEPTION(name, kind) \
class name : public kind { \
public: \