瀏覽代碼

Formatting.

main
offa 7 年之前
父節點
當前提交
c726e08dc1
共有 1 個文件被更改,包括 10 次插入8 次删除
  1. +10
    -8
      test/TestMain.cpp

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

@@ -26,17 +26,19 @@
namespace trompeloeil
{
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;
if (line) os << file << ':' << line << '\n';

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

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

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

Loading…
取消
儲存