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