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