fm33_assert.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. ****************************************************************************************************
  3. * @file fm33_assert.h
  4. * @author FMSH Application Team
  5. * @brief Assert function define
  6. ****************************************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) [2019] [Fudan Microelectronics]
  10. * THIS SOFTWARE is licensed under the Mulan PSL v1.
  11. * can use this software according to the terms and conditions of the Mulan PSL v1.
  12. * You may obtain a copy of Mulan PSL v1 at:
  13. * http://license.coscl.org.cn/MulanPSL
  14. * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
  15. * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
  16. * PURPOSE.
  17. * See the Mulan PSL v1 for more details.
  18. *
  19. ****************************************************************************************************
  20. */
  21. #ifndef __FM33_ASSERT_H
  22. #define __FM33_ASSERT_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. #ifdef USE_FULL_ASSERT
  27. #define assert_param(expr) do{if((expr) == 0)for(;;);}while(0)
  28. #else
  29. #define assert_param(expr) ((void)0U)
  30. #endif
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif