summaryrefslogtreecommitdiff
path: root/src/context/context.cpp
diff options
context:
space:
mode:
authorClark Barrett <barrett@cs.nyu.edu>2010-02-10 00:33:01 +0000
committerClark Barrett <barrett@cs.nyu.edu>2010-02-10 00:33:01 +0000
commit519cd30a0738465958cd1c81062526bcbac4d980 (patch)
tree2ddd84a26349bf4339055b57832000170cbccd96 /src/context/context.cpp
parent044329296028ad944b703929fad4d85aa6183472 (diff)
Added calls to destructor in CDList plus optional flag to disable.
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