Pārlūkot izejas kodu

Formatting.

main
offa pirms 7 gadiem
vecāks
revīzija
c726e08dc1
1 mainītis faili ar 10 papildinājumiem un 8 dzēšanām
  1. +10
    -8
      test/TestMain.cpp

+ 10
- 8
test/TestMain.cpp Parādīt failu

namespace trompeloeil namespace trompeloeil
{ {
template <> template <>
void reporter<specialized>::send(
severity s,
const char* file,
unsigned long line,
const char* msg)
void reporter<specialized>::send(severity s, const char* file, unsigned long line, const char* msg)
{ {
std::ostringstream os; std::ostringstream os;
if (line) os << file << ':' << line << '\n';

if( line )
{
os << file << ':' << line << '\n';
}

os << msg; os << msg;
auto failure = os.str();
if (s == severity::fatal)
const auto failure = os.str();

if( s == severity::fatal )
{ {
FAIL(failure); FAIL(failure);
} }

Notiek ielāde…
Atcelt
Saglabāt