]> git.proxmox.com Git - mirror_edk2.git/blob - StdLib/Include/stdbool.h
Standard Libraries for EDK II.
[mirror_edk2.git] / StdLib / Include / stdbool.h
1 /** @file
2 The header <stdbool.h> defines four macros: bool, true, false,
3 and __bool_true_false_are_defined.
4
5 The macro bool expands to _Bool.
6
7 The remaining three macros are suitable for use in #if preprocessing
8 directives. They are true, which expands to the integer constant 1,
9 false, which expands to the integer constant 0, and
10 __bool_true_false_are_defined which expands to the integer constant 1.
11
12 A program may undefine and perhaps then redefine the
13 macros bool, true, and false.
14
15 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>
16 This program and the accompanying materials are licensed and made available under
17 the terms and conditions of the BSD License that accompanies this distribution.
18 The full text of the license may be found at
19 http://opensource.org/licenses/bsd-license.php.
20
21 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
22 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
23
24 **/
25 #ifndef _STDBOOL_H
26 #define _STDBOOL_H
27 #include <sys/EfiCdefs.h>
28
29 #define bool _Bool
30 #define true 1
31 #define false 0
32 #define __bool_true_false_are_defined 1
33
34 #endif /* _STDBOOL_H */