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 | */ | |
6 | ||
7 | #ifndef _FALLTHROUGH_H | |
8 | #define _FALLTHROUGH_H | |
9 | ||
10 | #if defined(__GNUC__) | |
11 | #if __has_attribute(fallthrough) | |
12 | 131 | #define FALLTHROUGH __attribute__((fallthrough)); |
13 | #endif | |
14 | #endif /* __GNUC__ */ | |
15 | ||
16 | #ifndef FALLTHROUGH | |
17 | #define FALLTHROUGH /* FALLTHROUGH */ | |
18 | #endif | |
19 | ||
20 | #endif /* !_FALLTHROUGH_H */ |