Add a way to change fallback stringifier
This allows reuse of projects existing stringification machinery Closes #1024
This commit is contained in:
1 parent
082c3b84bc
commit
34d7a33574
2 files changed
+18
No files matched your search
@@ -88,7 +88,11 @@ namespace Catch {
|
||||
static
|
||||
typename std::enable_if<!::Catch::Detail::IsStreamInsertable<Fake>::value, std::string>::type
|
||||
convert( const Fake& value ) {
|
||||
#if !defined(CATCH_CONFIG_FALLBACK_STRINGIFIER)
|
||||
return Detail::convertUnstreamable( value );
|
||||
#else
|
||||
return CATCH_CONFIG_FALLBACK_STRINGIFIER( value );
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user