summaryrefslogtreecommitdiff
path: root/src/context/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/context/context.cpp')
-rw-r--r--src/context/context.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context/context.cpp b/src/context/context.cpp
index dce1d0a17..5ff377194 100644
--- a/src/context/context.cpp
+++ b/src/context/context.cpp
@@ -65,6 +65,8 @@ void Context::push() {
void Context::pop() {
+ Assert(getLevel() > 0, "Cannot pop below level 0");
+
// Notify the (pre-pop) ContextNotifyObj objects
ContextNotifyObj* pCNO = d_pCNOpre;
while (pCNO != NULL) {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback