}
// If uhash_puti() returns a non-zero value from an equivalent, previously
// registered node, then uhash_find() failed to find that and we will leak newNode.
-#if !U_RELEASE
+#if U_DEBUG
int32_t oldValue= // Only in debug mode to avoid a compiler warning about unused oldValue.
#endif
uhash_puti(nodes, newNode, 1, &errorCode);
}
// If uhash_puti() returns a non-zero value from an equivalent, previously
// registered node, then uhash_find() failed to find that and we will leak newNode.
-#if !U_RELEASE
+#if U_DEBUG
int32_t oldValue= // Only in debug mode to avoid a compiler warning about unused oldValue.
#endif
uhash_puti(nodes, newNode, 1, &errorCode);
/*
******************************************************************************
*
-* 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
pDecFn = dp;
gIncDecContext = context;
-#if !U_RELEASE
+#if U_DEBUG
{
int32_t testInt = 0;
U_ASSERT(umtx_atomic_inc(&testInt) == 1); /* Sanity Check. Do the functions work at all? */
* which disables assert().
*/
# define U_DEBUG 1
-#elif defined(U_RELEASE)
-# define U_DEBUG (!U_RELEASE)
# else
# define U_DEBUG 0
#endif
-/**
- * \def U_DEBUG
- * Opposite of U_DEBUG.
- * @internal
- */
-#ifndef U_RELEASE
-#define U_RELEASE (!U_DEBUG)
-#endif
-
/**
* Determines wheter to enable auto cleanup of libraries.
* @internal