xil_assert.h 650 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) 2020-2021, WangHuachen
  3. *
  4. * SPDX-License-Identifier: MIT
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-11-30 WangHuachen the first version
  9. */
  10. #ifndef XIL_ASSERT_H /* prevent circular inclusions */
  11. #define XIL_ASSERT_H /* by using protection macros */
  12. #include "xil_types.h"
  13. #ifdef __cplusplus
  14. extern "C"
  15. {
  16. #endif
  17. #define Xil_AssertNonvoid(Expression) RT_ASSERT(Expression)
  18. #define Xil_AssertVoid(Expression) RT_ASSERT(Expression)
  19. #define Xil_AssertVoidAlways() RT_ASSERT(0)
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif /* end of protection macro */
  24. /**
  25. * @} End of "addtogroup common_assert_apis".
  26. */