-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
47 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters