diff options
author | Clark Barrett <barrett@cs.nyu.edu> | 2010-02-10 00:33:01 +0000 |
---|---|---|
committer | Clark Barrett <barrett@cs.nyu.edu> | 2010-02-10 00:33:01 +0000 |
commit | 519cd30a0738465958cd1c81062526bcbac4d980 (patch) | |
tree | 2ddd84a26349bf4339055b57832000170cbccd96 /src/context/context.cpp | |
parent | 044329296028ad944b703929fad4d85aa6183472 (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.cpp | 2 |
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) { |