Coverage Report

Created: 2023-09-23 17:42

/libfido2/src/fallthrough.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2022 Yubico AB. All rights reserved.
3
 * Use of this source code is governed by a BSD-style
4
 * license that can be found in the LICENSE file.
5
 * SPDX-License-Identifier: BSD-2-Clause
6
 */
7
8
#ifndef _FALLTHROUGH_H
9
#define _FALLTHROUGH_H
10
11
#if defined(__GNUC__)
12
#if __has_attribute(fallthrough)
13
141
#define FALLTHROUGH     __attribute__((fallthrough));
14
#endif
15
#endif /* __GNUC__ */
16
17
#ifndef FALLTHROUGH
18
#define FALLTHROUGH     /* FALLTHROUGH */
19
#endif
20
21
#endif /* !_FALLTHROUGH_H */