michael@0: /* michael@0: ****************************************************************************** michael@0: * michael@0: * Copyright (C) 2002-2011, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ****************************************************************************** michael@0: * michael@0: * File uassert.h michael@0: * michael@0: * Contains U_ASSERT macro michael@0: * michael@0: * By default, U_ASSERT just wraps the C library assert macro. michael@0: * By changing the definition here, the assert behavior for ICU can be changed michael@0: * without affecting other non-ICU uses of the C library assert(). michael@0: * michael@0: ****************************************************************************** michael@0: */ michael@0: michael@0: #ifndef U_ASSERT_H michael@0: #define U_ASSERT_H michael@0: /* utypes.h is included to get the proper define for uint8_t */ michael@0: #include "unicode/utypes.h" michael@0: #if U_DEBUG michael@0: # include michael@0: # define U_ASSERT(exp) assert(exp) michael@0: #else michael@0: # define U_ASSERT(exp) michael@0: #endif michael@0: #endif michael@0: michael@0: