mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 18:35:40 +02:00
performance improvement - isTrue, isFalseTest, SourceLineInfo ctor
inlined isTrue, isFalseTest and SourceLineInfo ctor. Further work on #1086. Brings test from 0m25.584s to 0m20.635s
This commit is contained in:
@@ -15,10 +15,6 @@
|
||||
|
||||
namespace Catch {
|
||||
|
||||
SourceLineInfo::SourceLineInfo( char const* _file, std::size_t _line ) noexcept
|
||||
: file( _file ),
|
||||
line( _line )
|
||||
{}
|
||||
bool SourceLineInfo::empty() const noexcept {
|
||||
return file[0] == '\0';
|
||||
}
|
||||
@@ -38,7 +34,6 @@ namespace Catch {
|
||||
return os;
|
||||
}
|
||||
|
||||
bool isTrue( bool value ){ return value; }
|
||||
bool alwaysTrue() { return true; }
|
||||
bool alwaysFalse() { return false; }
|
||||
|
||||
|
Reference in New Issue
Block a user