Fix asserts with side-effects (per Keegan McAllister)
This commit is contained in:
@@ -68,7 +68,6 @@ std::list<Parser::Action *> Parser::UTF8Parser::input( char c )
|
||||
buf[ buf_len++ ] = c;
|
||||
|
||||
/* This function will only work in a UTF-8 locale. */
|
||||
/* This is asserted in the constructor. */
|
||||
|
||||
wchar_t pwc;
|
||||
mbstate_t ps;
|
||||
|
||||
@@ -123,6 +123,7 @@ void Emulator::print( const Parser::Print *act )
|
||||
break;
|
||||
default:
|
||||
assert( false );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
*/
|
||||
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "terminaldisplay.h"
|
||||
|
||||
Reference in New Issue
Block a user