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