diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/src_location.h | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/src_location.h')
-rw-r--r-- | util/system/src_location.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/util/system/src_location.h b/util/system/src_location.h index 2e35395c54..12ba6e063e 100644 --- a/util/system/src_location.h +++ b/util/system/src_location.h @@ -1,25 +1,25 @@ -#pragma once - -#include "src_root.h" - -#include <util/generic/strbuf.h> - -struct TSourceLocation { +#pragma once + +#include "src_root.h" + +#include <util/generic/strbuf.h> + +struct TSourceLocation { constexpr TSourceLocation(const TStringBuf f, int l) noexcept - : File(f) - , Line(l) - { - } - - TStringBuf File; - int Line; -}; - + : File(f) + , Line(l) + { + } + + TStringBuf File; + int Line; +}; + // __SOURCE_FILE__ should be used instead of __FILE__ #if !defined(__NVCC__) - #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.As<TStringBuf>()) + #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.As<TStringBuf>()) #else - #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.template As<TStringBuf>()) + #define __SOURCE_FILE__ (__SOURCE_FILE_IMPL__.template As<TStringBuf>()) #endif -#define __LOCATION__ ::TSourceLocation(__SOURCE_FILE__, __LINE__) +#define __LOCATION__ ::TSourceLocation(__SOURCE_FILE__, __LINE__) |