ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
stdbool.h
Go to the documentation of this file.
1
40/*===---- stdbool.h - ClangTool workaround header --------------------------===
41 *
42 * This is a simplified stdbool.h that doesn't use __has_include_next.
43 * ClangTool/LibTooling has a bug where __has_include_next errors instead of
44 * returning false when a header doesn't exist. This causes the standard
45 * clang stdbool.h to fail on macOS.
46 *
47 * This header provides the same functionality as the standard stdbool.h
48 * without the problematic __has_include_next check.
49 *
50 *===-----------------------------------------------------------------------===
51 */
52
53#ifndef __STDBOOL_H
54#define __STDBOOL_H
55
56#define __bool_true_false_are_defined 1
57
58#if defined(__STDC_VERSION__) && __STDC_VERSION__ > 201710L
59/* C23+ defines bool, true, false as keywords */
60#elif !defined(__cplusplus)
61#define bool _Bool
62#define true 1
63#define false 0
64#elif defined(__GNUC__) && !defined(__STRICT_ANSI__)
65/* Define _Bool as a GNU extension for C++ */
66#define _Bool bool
67#if defined(__cplusplus) && __cplusplus < 201103L
68/* For C++98, define bool, false, true as a GNU extension. */
69#define bool bool
70#define false false
71#define true true
72#endif
73#endif
74
75#endif /* __STDBOOL_H */