aboutsummaryrefslogtreecommitdiffhomepage
path: root/goto.cpp
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-16 18:57:34 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-11-16 18:57:34 +0100
commit597497938a96b14f327345adb00dfcfd080208a3 (patch)
treed5ce78df6c5a234dc0ffa19c6357d805555f5122 /goto.cpp
parentde99e1068e3158866c0a537c27f035ae3d350d1a (diff)
downloadsciteco-597497938a96b14f327345adb00dfcfd080208a3.tar.gz
support different kinds of runtime errors (using C++ exceptions)
* also added some additional range checks (e.g. X command)
Diffstat (limited to 'goto.cpp')
-rw-r--r--goto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/goto.cpp b/goto.cpp
index 4b2ce15..63ccc05 100644
--- a/goto.cpp
+++ b/goto.cpp
@@ -171,7 +171,7 @@ StateLabel::StateLabel() : State()
}
State *
-StateLabel::custom(gchar chr)
+StateLabel::custom(gchar chr) throw (Error)
{
gchar *new_str;
@@ -203,7 +203,7 @@ StateLabel::custom(gchar chr)
}
State *
-StateGotoCmd::done(const gchar *str)
+StateGotoCmd::done(const gchar *str) throw (Error)
{
gint64 value;
gchar **labels;