src_location.cpp 316 B

123456789101112131415
  1. #include "src_location.h"
  2. #include <util/stream/output.h>
  3. template <>
  4. void Out<TSourceLocation>(IOutputStream& o, const TSourceLocation& t) {
  5. #if defined(_win_)
  6. TString file(t.File);
  7. std::replace(file.begin(), file.vend(), '\\', '/');
  8. o << file;
  9. #else
  10. o << t.File;
  11. #endif
  12. o << ':' << t.Line;
  13. }