aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/yassert.h
diff options
context:
space:
mode:
authornga <nga@yandex-team.ru>2022-02-10 16:48:09 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:09 +0300
commit1f553f46fb4f3c5eec631352cdd900a0709016af (patch)
treea231fba2c03b440becaea6c86a2702d0bfb0336e /util/system/yassert.h
parentc4de7efdedc25b49cbea74bd589eecb61b55b60a (diff)
downloadydb-1f553f46fb4f3c5eec631352cdd900a0709016af.tar.gz
Restoring authorship annotation for <nga@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/yassert.h')
-rw-r--r--util/system/yassert.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/system/yassert.h b/util/system/yassert.h
index 529823440c..a94b47d3f4 100644
--- a/util/system/yassert.h
+++ b/util/system/yassert.h
@@ -3,7 +3,7 @@
#include "defaults.h"
#include "src_root.h"
#include "backtrace.h"
-
+
#if defined(_MSC_VER)
#include <new>
#if defined(_DEBUG)
@@ -89,12 +89,12 @@ inline void YaDebugBreak() {
} while (false)
#endif
-namespace NPrivate {
- /// method should not be used directly
+namespace NPrivate {
+ /// method should not be used directly
[[noreturn]] void Panic(const TStaticBuf& file, int line, const char* function, const char* expr, const char* format, ...) noexcept Y_PRINTF_FORMAT(5, 6);
-}
-
-/// Assert that does not depend on NDEBUG macro and outputs message like printf
+}
+
+/// Assert that does not depend on NDEBUG macro and outputs message like printf
#define Y_VERIFY(expr, ...) \
do { \
if (Y_UNLIKELY(!(expr))) { \
@@ -106,7 +106,7 @@ namespace NPrivate {
do { \
::NPrivate::Panic(__SOURCE_FILE_IMPL__, __LINE__, __FUNCTION__, nullptr, " " __VA_ARGS__); \
} while (false)
-
+
#ifndef NDEBUG
/// Assert that depend on NDEBUG macro and outputs message like printf
#define Y_VERIFY_DEBUG(expr, ...) \