ensure codes conforms ISO c11 standard.

This commit is contained in:
Gatsby Van
2023-12-21 14:56:35 +08:00
parent ebe3ebf71d
commit 955478d01d
2 changed files with 48 additions and 52 deletions
+6 -5
View File
@@ -30,14 +30,15 @@
/*****************************************************************************/
/**
* @brief
* @brief Throw an assert.
*
* @param
* @param file indicate the filename of the assertion
* @param line indicate which line the assertion occurs
*
* @return
* @return NONE.
*
******************************************************************************/
void AppAssert(const char * file, int line){
DBG_ERROR("Assert: %s, #%d.\n", file, line);
DBG_PRINT("in %s #%4d [assert] ",file, line);
while(1);
};
}