STM32L4xx_HAL_Driver  1.14.0
stm32_assert_template.h
Go to the documentation of this file.
1 
22 /* Define to prevent recursive inclusion -------------------------------------*/
23 #ifndef STM32_ASSERT_H
24 #define STM32_ASSERT_H
25 
26 #ifdef __cplusplus
27  extern "C" {
28 #endif
29 
30 /* Exported types ------------------------------------------------------------*/
31 /* Exported constants --------------------------------------------------------*/
32 /* Includes ------------------------------------------------------------------*/
33 /* Exported macro ------------------------------------------------------------*/
34 #ifdef USE_FULL_ASSERT
35 
43  #define assert_param(expr) ((expr) ? (void)0U : assert_failed((char *)__FILE__, __LINE__))
44 /* Exported functions ------------------------------------------------------- */
45  void assert_failed(char *file, uint32_t line);
46 #else
47  #define assert_param(expr) ((void)0U)
48 #endif /* USE_FULL_ASSERT */
49 
50 #ifdef __cplusplus
51 }
52 #endif
53 
54 #endif /* STM32_ASSERT_H */
55 
56 
57 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/