Merge pull request #152 from pmconrad/1952_fix_assert

Possible fix for core #1952
This commit is contained in:
Peter Conrad 2019-08-30 20:44:18 +02:00 committed by GitHub
commit 7a4758671f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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