Emit warning: ScreenStack tries to pop when empty
This commit is contained in:
parent
7a4c8ea0f5
commit
a0dbf2b172
1 changed files with 5 additions and 0 deletions
|
@ -68,6 +68,11 @@ void ScreenStack::handle_pending_actions() {
|
||||||
if (!stack.empty()) {
|
if (!stack.empty()) {
|
||||||
stack.pop_back();
|
stack.pop_back();
|
||||||
}
|
}
|
||||||
|
#ifndef NDEBUG
|
||||||
|
else {
|
||||||
|
std::cerr << "WARNING: Tried to pop screen when stack was empty!\n";
|
||||||
|
}
|
||||||
|
#endif // NDEBUG
|
||||||
break;
|
break;
|
||||||
case Action::NOP:
|
case Action::NOP:
|
||||||
// Intentionally left blank.
|
// Intentionally left blank.
|
||||||
|
|
Loading…
Reference in a new issue