浏览代码

Formatting.

main
offa 8 年前
父节点
当前提交
c726e08dc1
共有 1 个文件被更改,包括 10 次插入8 次删除
  1. +10
    -8
      test/TestMain.cpp

+ 10
- 8
test/TestMain.cpp 查看文件

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);
} }

正在加载...
取消
保存