blob: 9948260874a565578dd67d93cee6c5bea191188f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#ifndef SOURCE_LOCATION_INL_H_
#error "Direct inclusion of this file is not allowed, include source_location.h"
// For the sake of sane code completion.
#include "source_location.h"
#endif
namespace NYT {
////////////////////////////////////////////////////////////////////////////////
inline TSourceLocation::TSourceLocation(const char* fileName, int line)
: FileName_(fileName)
, Line_(line)
{ }
#ifdef __cpp_lib_source_location
inline TSourceLocation::TSourceLocation(const std::source_location& location)
: FileName_(location.file_name())
, Line_(location.line())
{ }
#endif // __cpp_lib_source_location
////////////////////////////////////////////////////////////////////////////////
} // namespace std
|