终版
This commit is contained in:
@@ -67,6 +67,7 @@
|
||||
*/
|
||||
#define assert_param(expr) ((expr) ? (void)0 : assert_failed((uint8_t *)__FILE__, __LINE__))
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
/* 函数作用:在开启断言检查时报告参数断言失败所在的文件和行号。 */
|
||||
void assert_failed(uint8_t* file, uint32_t line);
|
||||
#else
|
||||
#define assert_param(expr) ((void)0)
|
||||
|
||||
Reference in New Issue
Block a user