mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-02 18:07:59 +00:00
Use CATCH_NULL instead of NULL
- expands to nullptr if CATCH_CONFIG_CPP11_NULLPTR is defined (see #444)
This commit is contained in:
parent
3b18d9e962
commit
805de43a3d
25 changed files with 112 additions and 101 deletions
|
@ -148,7 +148,7 @@ struct StringMaker<T*> {
|
|||
template<typename U>
|
||||
static std::string convert( U* p ) {
|
||||
if( !p )
|
||||
return INTERNAL_CATCH_STRINGIFY( NULL );
|
||||
return "NULL";
|
||||
else
|
||||
return Detail::rawMemoryToString( p );
|
||||
}
|
||||
|
@ -158,7 +158,7 @@ template<typename R, typename C>
|
|||
struct StringMaker<R C::*> {
|
||||
static std::string convert( R C::* p ) {
|
||||
if( !p )
|
||||
return INTERNAL_CATCH_STRINGIFY( NULL );
|
||||
return "NULL";
|
||||
else
|
||||
return Detail::rawMemoryToString( p );
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue