Possible fix for core #1952

This commit is contained in:
Peter Conrad 2019-08-22 11:11:17 +02:00
parent ea85954e17
commit 78ffb6dbd3

View file

@ -27,7 +27,7 @@ namespace fc
{
void throw_assertion_failure( const std::string& message );
}
#define _FC_ASSERT( cond, msg ) { if( !(cond) ) { fc::throw_assertion_failure( #cond ": " msg ); } }
#define _FC_ASSERT( cond, msg ) { if( !(cond) ) { char t[] = #cond ": " msg; fc::throw_assertion_failure( t ); } }
#endif
namespace fc