intl/icu/source/common/uassert.h

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /*
michael@0 2 ******************************************************************************
michael@0 3 *
michael@0 4 * Copyright (C) 2002-2011, International Business Machines
michael@0 5 * Corporation and others. All Rights Reserved.
michael@0 6 *
michael@0 7 ******************************************************************************
michael@0 8 *
michael@0 9 * File uassert.h
michael@0 10 *
michael@0 11 * Contains U_ASSERT macro
michael@0 12 *
michael@0 13 * By default, U_ASSERT just wraps the C library assert macro.
michael@0 14 * By changing the definition here, the assert behavior for ICU can be changed
michael@0 15 * without affecting other non-ICU uses of the C library assert().
michael@0 16 *
michael@0 17 ******************************************************************************
michael@0 18 */
michael@0 19
michael@0 20 #ifndef U_ASSERT_H
michael@0 21 #define U_ASSERT_H
michael@0 22 /* utypes.h is included to get the proper define for uint8_t */
michael@0 23 #include "unicode/utypes.h"
michael@0 24 #if U_DEBUG
michael@0 25 # include <assert.h>
michael@0 26 # define U_ASSERT(exp) assert(exp)
michael@0 27 #else
michael@0 28 # define U_ASSERT(exp)
michael@0 29 #endif
michael@0 30 #endif
michael@0 31
michael@0 32

mercurial