aboutsummaryrefslogtreecommitdiffstats
path: root/source/error.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/error.hpp')
-rw-r--r--source/error.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/error.hpp b/source/error.hpp
index 699c746..6911792 100644
--- a/source/error.hpp
+++ b/source/error.hpp
@@ -27,6 +27,10 @@ public:
return condition;
}
+ bool hasError() {
+ return m_index > 0;
+ }
+
Error pop() {
return m_index == 0 ? Error::None : m_queue[--m_index];
}