]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/uassert.h
ICU-59173.0.1.tar.gz
[apple/icu.git] / icuSources / common / uassert.h
index 0a6080db56ab6399fbc373caef75ef7deb36a0b2..fd6b6c4c013549cb64e58aba1ad9f4e6df933ba7 100644 (file)
@@ -1,7 +1,9 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /*
 ******************************************************************************
 *
-*   Copyright (C) 2002, International Business Machines
+*   Copyright (C) 2002-2011, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ******************************************************************************
 #define U_ASSERT_H
 /* utypes.h is included to get the proper define for uint8_t */
 #include "unicode/utypes.h"
-#include <assert.h>
-#define U_ASSERT(exp) assert(exp)
+#if U_DEBUG
+#   include <assert.h>
+#   define U_ASSERT(exp) assert(exp)
+#else
+#   define U_ASSERT(exp)
+#endif
 #endif