mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Merge pull request #855 from kainjow/objc-tostring-link
Fix Catch::toString() linker error when main() is compiled as C++
This commit is contained in:
commit
004228efb2
@ -63,7 +63,7 @@ std::string toString( std::nullptr_t );
|
|||||||
|
|
||||||
#ifdef __OBJC__
|
#ifdef __OBJC__
|
||||||
std::string toString( NSString const * const& nsstring );
|
std::string toString( NSString const * const& nsstring );
|
||||||
std::string toString( NSString * CATCH_ARC_STRONG const& nsstring );
|
std::string toString( NSString * CATCH_ARC_STRONG & nsstring );
|
||||||
std::string toString( NSObject* const& nsObject );
|
std::string toString( NSObject* const& nsObject );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -198,7 +198,7 @@ std::string toString( std::nullptr_t ) {
|
|||||||
return "nil";
|
return "nil";
|
||||||
return "@" + toString([nsstring UTF8String]);
|
return "@" + toString([nsstring UTF8String]);
|
||||||
}
|
}
|
||||||
std::string toString( NSString * CATCH_ARC_STRONG const& nsstring ) {
|
std::string toString( NSString * CATCH_ARC_STRONG & nsstring ) {
|
||||||
if( !nsstring )
|
if( !nsstring )
|
||||||
return "nil";
|
return "nil";
|
||||||
return "@" + toString([nsstring UTF8String]);
|
return "@" + toString([nsstring UTF8String]);
|
||||||
|
Loading…
Reference in New Issue
Block a user