2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-21 15:02:19 +00:00

Debug CI crash 30/n [skip ci]

This commit is contained in:
Rene Rivera
2022-04-17 15:26:19 -05:00
parent bc750e0c51
commit f58e3d81f9

View File

@@ -357,7 +357,15 @@ struct _stack
void pop( int32_t n )
{
set_data( nth<T>( n ) );
--cleanups_size;
if ( cleanups_size == cleanups_t::size_type(0) )
{
err_puts( "Function stack cleanup underflow.\n" );
err_flush();
b2::clean_exit( b2::exit_result::failure );
return;
}
cleanups_size -= 1;
assert( cleanups[cleanups_size].count == n );
}
private: