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