Hanno Becker | c809ff6 | 2021-01-12 06:54:04 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright The Mbed TLS Contributors |
| 3 | * SPDX-License-Identifier: Apache-2.0 |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 6 | * not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | * This file is part of mbed TLS (https://tls.mbed.org) |
| 18 | */ |
| 19 | |
| 20 | /** |
| 21 | * \file trace.h |
| 22 | * |
| 23 | * \brief Tracing module for MPS |
| 24 | */ |
| 25 | |
| 26 | #ifndef MBEDTLS_MPS_TRACE_H |
| 27 | #define MBEDTLS_MPS_TRACE_H |
| 28 | |
| 29 | #include "common.h" |
| 30 | |
| 31 | #if defined(MBEDTLS_MPS_TRACE) |
| 32 | |
| 33 | #error "MPS tracing module not yet implemented" |
| 34 | |
| 35 | #else /* MBEDTLS_MPS_TRACE */ |
| 36 | |
| 37 | #define TRACE( type, fmt, ... ) do { } while( 0 ) |
| 38 | #define TRACE_INIT( fmt, ... ) do { } while( 0 ) |
| 39 | #define TRACE_END do { } while( 0 ) |
| 40 | |
| 41 | #define RETURN( val ) return( val ); |
| 42 | |
| 43 | #endif /* MBEDTLS_MPS_TRACE */ |
| 44 | |
| 45 | #endif /* MBEDTLS_MPS_TRACE_H */ |