Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
utest_stack_trace.h
00001 /**************************************************************************** 00002 * Copyright (c) 2016, ARM Limited, All Rights Reserved 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00006 * not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 **************************************************************************** 00017 */ 00018 00019 #ifndef UTEST_STACK_TRACE_H 00020 #define UTEST_STACK_TRACE_H 00021 00022 #ifdef UTEST_STACK_TRACE 00023 #include <string> 00024 00025 #define UTEST_MAX_BACKTRACE 100 00026 extern std::string utest_trace[UTEST_MAX_BACKTRACE]; 00027 00028 extern void utest_trace_initialise(); 00029 extern void utest_add_to_trace(char *func_name); 00030 extern void utest_dump_trace(); 00031 00032 #define UTEST_LOG_FUNCTION(); utest_add_to_trace((char *)__func__); 00033 #define UTEST_TRACE_START utest_trace_initialise(); 00034 #define UTEST_DUMP_TRACE utest_dump_trace(); 00035 00036 #else 00037 00038 #define UTEST_LOG_FUNCTION(); 00039 #define UTEST_TRACE_START 00040 #define UTEST_DUMP_TRACE 00041 00042 #endif // UTEST_STACK_TRACE 00043 00044 #endif // UTEST_STACK_TRACE_H
Generated on Tue Jul 12 2022 12:28:59 by
1.7.2
