more debugging in state machine

This commit is contained in:
Cary Sandvig 2001-02-02 23:41:31 +00:00
parent 00cc234397
commit 0f0b9ec6c6

View File

@ -49,8 +49,8 @@ INLINE void GuiButton::up(void) {
switch_state(UP_ROLLOVER); switch_state(UP_ROLLOVER);
break; break;
default: default:
gui_cat->warning() << "got up from invalid state (" << (int)_state << ")" gui_cat->warning() << "got up from invalid state (" << (int)_state << "),"
<< endl; << " button '" << this->get_name() << "'" << endl;
} }
} }
@ -65,8 +65,8 @@ INLINE void GuiButton::down(void) {
switch_state(DOWN_ROLLOVER); switch_state(DOWN_ROLLOVER);
break; break;
default: default:
gui_cat->warning() << "got down from invalid state (" << (int)_state << ")" gui_cat->warning() << "got down from invalid state (" << (int)_state
<< endl; << "), button '" << this->get_name() << "'" << endl;
} }
} }
@ -82,7 +82,7 @@ INLINE void GuiButton::inactive(void) {
break; break;
default: default:
gui_cat->warning() << "got inactive from invalid state (" << (int)_state gui_cat->warning() << "got inactive from invalid state (" << (int)_state
<< ")" << endl; << "), button '" << this->get_name() << "'" << endl;
} }
} }
@ -101,7 +101,7 @@ INLINE void GuiButton::click(void) {
break; break;
default: default:
gui_cat->warning() << "got click from invalid state (" << (int)_state gui_cat->warning() << "got click from invalid state (" << (int)_state
<< ")" << endl; << "), button '" << this->get_name() << "'" << endl;
} }
} }