aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parser.cpp')
-rw-r--r--parser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/parser.cpp b/parser.cpp
index 5d41b5e..59305bc 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -81,8 +81,13 @@ file_execute(const gchar *filename)
try {
macro_execute(p ? p+1 : macro);
+ if (Goto::skip_label)
+ throw State::Error("Label \"%s\" not found",
+ Goto::skip_label);
} catch (...) {
g_free(macro);
+ g_free(Goto::skip_label);
+ Goto::skip_label = NULL;
return false;
}
g_free(macro);