Some debugging

This commit is contained in:
Keith Winstein
2011-08-12 05:34:49 -04:00
parent 17804b2230
commit 30fc11403d
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -22,6 +22,10 @@ string KeyStroke::diff_from( KeyStroke const & existing )
i != existing.user_bytes.end();
i++ ) {
assert( my_it != user_bytes.end() );
if ( *i != *my_it ) {
fprintf( stderr, "BUG: existing state has %c and new state has %c\n",
*i, *my_it );
}
assert( *i == *my_it );
my_it++;
}