aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/error.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.h')
-rw-r--r--src/error.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/error.h b/src/error.h
index 2786929..d0849c7 100644
--- a/src/error.h
+++ b/src/error.h
@@ -101,6 +101,13 @@ public:
Error(const Error &inst);
~Error();
+ inline void
+ set_coord(const gchar *str, gint _pos)
+ {
+ pos = _pos;
+ String::get_coord(str, pos, line, column);
+ }
+
void add_frame(Frame *frame);
void display_short(void);