From 4048ee8150cad5253fd6f0245c9a357484eac3f2 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 11 Nov 2014 15:09:21 +0100 Subject: refactored SciTECO runtime errors: moved from parser.cpp to error.cpp * the GError expection has been renamed to GlibError, to avoid nameclashes when working from the SciTECO namespace --- src/expressions.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/expressions.h') diff --git a/src/expressions.h b/src/expressions.h index 1e61ab8..8e690e8 100644 --- a/src/expressions.h +++ b/src/expressions.h @@ -21,7 +21,7 @@ #include #include "undo.h" -#include "parser.h" // State::Error +#include "error.h" namespace SciTECO { @@ -87,7 +87,7 @@ public: push(Type value, int index = 1) { if (items() == size) - throw State::Error("Stack overflow"); + throw Error("Stack overflow"); for (int i = -index + 1; i; i++) top[i+1] = top[i]; -- cgit v1.2.3