Software APIs
stdbool.h
Go to the documentation of this file.
1 // Copyright lowRISC contributors (OpenTitan project).
2 // Licensed under the Apache License, Version 2.0, see LICENSE for details.
3 // SPDX-License-Identifier: Apache-2.0
4 
5 #ifndef OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_STDBOOL_H_
6 #define OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_STDBOOL_H_
7 
8 /**
9  * @file
10  * @brief C Library Boolean type and values (Freestanding)
11  *
12  * This header implements the stdbool.h standard header, as required by C11
13  * S4p6. This header is specified in detail in S7.18 of the same.
14  */
15 
16 #define bool _Bool
17 #define true 1
18 #define false 0
19 
20 #define __bool_true_false_are_defined 1
21 
22 #endif // OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_STDBOOL_H_