mirror of https://github.com/ARMmbed/mbed-os.git
Add ASSERTATION_FAILED error code
parent
c3e7ddbb10
commit
a2f3c59768
|
@ -29,5 +29,5 @@ void mbed_assert_internal(const char *expr, const char *file, int line)
|
|||
char error_message[error_message_length];
|
||||
snprintf(error_message, error_message_length, "%s%s", error_description, expr);
|
||||
|
||||
mbed_error(MBED_ERROR_INVALID_ARGUMENT, error_message, 0, file, line);
|
||||
mbed_error(MBED_ERROR_ASSERTATION_FAILED, error_message, 0, file, line);
|
||||
}
|
||||
|
|
|
@ -780,7 +780,8 @@ typedef enum _mbed_error_code {
|
|||
MBED_DEFINE_SYSTEM_ERROR(BLE_NO_FRAME_INITIALIZED, 65), /* 321 BLE No frame initialized */
|
||||
MBED_DEFINE_SYSTEM_ERROR(BLE_BACKEND_CREATION_FAILED, 66), /* 322 BLE Backend creation failed */
|
||||
MBED_DEFINE_SYSTEM_ERROR(BLE_BACKEND_NOT_INITIALIZED, 67), /* 323 BLE Backend not initialized */
|
||||
|
||||
MBED_DEFINE_SYSTEM_ERROR(ASSERTATION_FAILED, 68), /* 324 Assertation Failed */
|
||||
|
||||
//Everytime you add a new system error code, you must update
|
||||
//Error documentation under Handbook to capture the info on
|
||||
//the new error status/codes
|
||||
|
|
Loading…
Reference in New Issue