Added StringRef constructor that captures string literal size at compile time
This commit is contained in:
1 parent
f36817ef83
commit
4353614df7
3 files changed
+13
-9
No files matched your search
@@ -15,7 +15,7 @@
|
||||
namespace {
|
||||
// Report the error condition
|
||||
void reportFatal( char const * const message ) {
|
||||
Catch::getCurrentContext().getResultCapture()->handleFatalErrorCondition( message );
|
||||
Catch::getCurrentContext().getResultCapture()->handleFatalErrorCondition( Catch::StringRef::fromRaw( message ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user