aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/icu/common/uassert.h
diff options
context:
space:
mode:
authorneksard <neksard@yandex-team.ru>2022-02-10 16:45:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:33 +0300
commit1d9c550e7c38e051d7961f576013a482003a70d9 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /contrib/libs/icu/common/uassert.h
parent8f7cf138264e0caa318144bf8a2c950e0b0a8593 (diff)
downloadydb-1d9c550e7c38e051d7961f576013a482003a70d9.tar.gz
Restoring authorship annotation for <neksard@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/icu/common/uassert.h')
-rw-r--r--contrib/libs/icu/common/uassert.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/contrib/libs/icu/common/uassert.h b/contrib/libs/icu/common/uassert.h
index 7ffb8483cb..15cd55c873 100644
--- a/contrib/libs/icu/common/uassert.h
+++ b/contrib/libs/icu/common/uassert.h
@@ -1,24 +1,24 @@
// © 2016 and later: Unicode, Inc. and others.
-// License & terms of use: http://www.unicode.org/copyright.html
-/*
-******************************************************************************
-*
-* Copyright (C) 2002-2011, International Business Machines
-* Corporation and others. All Rights Reserved.
-*
-******************************************************************************
-*
-* File uassert.h
-*
+// License & terms of use: http://www.unicode.org/copyright.html
+/*
+******************************************************************************
+*
+* Copyright (C) 2002-2011, International Business Machines
+* Corporation and others. All Rights Reserved.
+*
+******************************************************************************
+*
+* File uassert.h
+*
* Contains the U_ASSERT and UPRV_UNREACHABLE macros
-*
-******************************************************************************
-*/
-#ifndef U_ASSERT_H
-#define U_ASSERT_H
+*
+******************************************************************************
+*/
+#ifndef U_ASSERT_H
+#define U_ASSERT_H
-/* utypes.h is included to get the proper define for uint8_t */
-#include "unicode/utypes.h"
+/* utypes.h is included to get the proper define for uint8_t */
+#include "unicode/utypes.h"
/* for abort */
#include <stdlib.h>
@@ -28,14 +28,14 @@
* By changing the definition here, the assert behavior for ICU can be changed
* without affecting other non - ICU uses of the C library assert().
*/
-#if U_DEBUG
-# include <assert.h>
-# define U_ASSERT(exp) assert(exp)
+#if U_DEBUG
+# include <assert.h>
+# define U_ASSERT(exp) assert(exp)
#elif U_CPLUSPLUS_VERSION
# define U_ASSERT(exp) void()
-#else
-# define U_ASSERT(exp)
-#endif
+#else
+# define U_ASSERT(exp)
+#endif
/**
* \def UPRV_UNREACHABLE
@@ -46,6 +46,6 @@
// Use the predefined value.
#else
# define UPRV_UNREACHABLE abort()
-#endif
-
+#endif
+
#endif