ON Semiconductor / mbed-os

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers unity_handler.h Source File

unity_handler.h

00001 
00002 /** \addtogroup frameworks */
00003 /** @{*/
00004 /****************************************************************************
00005  * Copyright (c) 2015, ARM Limited, All Rights Reserved
00006  * SPDX-License-Identifier: Apache-2.0
00007  *
00008  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00009  * not use this file except in compliance with the License.
00010  * You may obtain a copy of the License at
00011  *
00012  * http://www.apache.org/licenses/LICENSE-2.0
00013  *
00014  * Unless required by applicable law or agreed to in writing, software
00015  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00016  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00017  * See the License for the specific language governing permissions and
00018  * limitations under the License.
00019  ****************************************************************************
00020  */
00021 
00022 #ifndef UTEST_UNITY_ASSERT_FAILURE_H
00023 #define UTEST_UNITY_ASSERT_FAILURE_H
00024 
00025 #include <stdint.h>
00026 
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030 
00031 /// this function is called from the unity module when an assertion failed.
00032 void utest_unity_assert_failure(void);
00033 
00034 /// this function is called from the unity module when an assertion failed, but is ignored.
00035 void utest_unity_ignore_failure(void);
00036 
00037 void utest_safe_putc(int chr);
00038 
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042 
00043 #endif // UTEST_UNITY_ASSERT_FAILURE_H
00044 
00045 /** @}*/