1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/fontservices/textshaperplugin/IcuSource/common/uassert.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,32 @@
1.4 +/*
1.5 +******************************************************************************
1.6 +*
1.7 +* Copyright (C) 2002-2003, International Business Machines
1.8 +* Corporation and others. All Rights Reserved.
1.9 +*
1.10 +******************************************************************************
1.11 +*
1.12 +* File uassert.h
1.13 +*
1.14 +* Contains U_ASSERT macro
1.15 +*
1.16 +* By default, U_ASSERT just wraps the C library assert macro.
1.17 +* By changing the definition here, the assert behavior for ICU can be changed
1.18 +* without affecting other non-ICU uses of the C library assert().
1.19 +*
1.20 +******************************************************************************
1.21 +*/
1.22 +
1.23 +#ifndef U_ASSERT_H
1.24 +#define U_ASSERT_H
1.25 +/* utypes.h is included to get the proper define for uint8_t */
1.26 +#include "unicode/utypes.h"
1.27 +#if U_RELEASE
1.28 +#define U_ASSERT(exp)
1.29 +#else
1.30 +#include <assert.h>
1.31 +#define U_ASSERT(exp) assert(exp)
1.32 +#endif
1.33 +#endif
1.34 +
1.35 +