3 * @author Intel Corporation
6 * @brief description goes here
9 * IXP400 SW Release version 2.0
11 * -- Copyright Notice --
14 * Copyright 2001-2005, Intel Corporation.
15 * All rights reserved.
18 * SPDX-License-Identifier: BSD-3-Clause
20 * -- End of Copyright Notice --
23 #ifndef IX_OSAL_ASSERT_H
24 #define IX_OSAL_ASSERT_H
27 * Put the system defined include files required
32 #include "IxOsalOsAssert.h"
35 * @brief Assert macro, assert the condition is true. This
36 * will not be compiled out.
37 * N.B. will result in a system crash if it is false.
39 #define IX_OSAL_ASSERT(c) IX_OSAL_OS_ASSERT(c)
43 * @brief Ensure macro, ensure the condition is true.
44 * This will be conditionally compiled out and
45 * may be used for test purposes.
47 #ifdef IX_OSAL_ENSURE_ON
48 #define IX_OSAL_ENSURE(c, str) do { \
49 if (!(c)) ixOsalLog (IX_OSAL_LOG_LVL_MESSAGE, IX_OSAL_LOG_DEV_STDOUT, str, \
50 0, 0, 0, 0, 0, 0); } while (0)
53 #define IX_OSAL_ENSURE(c, str)
57 #endif /* IX_OSAL_ASSERT_H */