aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/src_location.cpp
blob: 5d9ce4fd135be3ce7a022f7ccf60073fd97a1e32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "src_location.h"

#include <util/stream/output.h>

#include <algorithm>

template <>
void Out<TSourceLocation>(IOutputStream& o, const TSourceLocation& t) { 
#if defined(_win_)
    TString file(t.File);
    std::replace(file.begin(), file.vend(), '\\', '/');
    o << file;
#else
    o << t.File;
#endif
    o << ':' << t.Line;
}