forked from 0xha0/datalink_repo
ensure codes conforms ISO c11 standard.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user