]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/common/uassert.h
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / common / uassert.h
index 9b1a14168fb684106783d33d1a3c662ddf8985b9..9dc29b242b5049d48fe39c6ea7dec6f7db571cc7 100644 (file)
@@ -1,7 +1,7 @@
 /*
 ******************************************************************************
 *
-*   Copyright (C) 2002-2003, 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"
-#if U_RELEASE
-#define U_ASSERT(exp)
+#if U_DEBUG
+#   include <assert.h>
+#   define U_ASSERT(exp) assert(exp)
 #else
-#include <assert.h>
-#define U_ASSERT(exp) assert(exp)
+#   define U_ASSERT(exp)
 #endif
 #endif