Debian Codegraph @

crt/aws-c-common/include/aws/common/stdbool.h

raw symbols SCIP
1 /* clang-format off */
2 /* clang-format gets confused by the #define bool line, and gives crazy indenting */
3 #ifndef AWS_COMMON_STDBOOL_H
4 #define AWS_COMMON_STDBOOL_H
5
6 /**
7 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
8 * SPDX-License-Identifier: Apache-2.0.
9 */
10
11 #ifndef NO_STDBOOL
12 # include <stdbool.h> /* NOLINT(fuchsia-restrict-system-includes) */
13 #else
14 # ifndef __cplusplus
15 # define bool _Bool
16 # define true 1
17 # define false 0
18 # elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
19 # define _Bool bool
20 # if __cplusplus < 201103L
21 /* For C++98, define bool, false, true as a GNU extension. */
22 # define bool bool
23 # define false false
24 # define true true
25 # endif /* __cplusplus < 201103L */
26 # endif /* __cplusplus */
27 #endif /* NO_STDBOOL */
28
29 #endif /* AWS_COMMON_STDBOOL_H */
30 /* clang-format on */