aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/yassert.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/system/yassert.h
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/yassert.h')
-rw-r--r--util/system/yassert.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/yassert.h b/util/system/yassert.h
index 530a82174c..529823440c 100644
--- a/util/system/yassert.h
+++ b/util/system/yassert.h
@@ -54,7 +54,7 @@ inline void YaDebugBreak() {
__debugbreak();
}
-#undef Y_ASSERT
+#undef Y_ASSERT
#if !defined(NDEBUG) && !defined(__GCCXML__)
#define Y_ASSERT(a) \
@@ -95,16 +95,16 @@ namespace NPrivate {
}
/// Assert that does not depend on NDEBUG macro and outputs message like printf
-#define Y_VERIFY(expr, ...) \
+#define Y_VERIFY(expr, ...) \
do { \
if (Y_UNLIKELY(!(expr))) { \
::NPrivate::Panic(__SOURCE_FILE_IMPL__, __LINE__, __FUNCTION__, #expr, " " __VA_ARGS__); \
} \
} while (false)
-#define Y_FAIL(...) \
- do { \
- ::NPrivate::Panic(__SOURCE_FILE_IMPL__, __LINE__, __FUNCTION__, nullptr, " " __VA_ARGS__); \
+#define Y_FAIL(...) \
+ do { \
+ ::NPrivate::Panic(__SOURCE_FILE_IMPL__, __LINE__, __FUNCTION__, nullptr, " " __VA_ARGS__); \
} while (false)
#ifndef NDEBUG