source: libcfa/src/stdhdr/stdbool.h @ 79e261b7

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 79e261b7 was 1097bb7, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

cast boolean constants false/true to tyoe _Bool in stdbool.h

  • Property mode set to 100644
File size: 810 bytes
Line 
1//
2// Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo
3//
4// The contents of this file are covered under the licence agreement in the
5// file "LICENCE" distributed with Cforall.
6//
7// stdbool.h --
8//
9// Author           : Peter A. Buhr
10// Created On       : Mon Jul  4 23:25:26 2016
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Mon Mar 25 08:00:08 2019
13// Update Count     : 15
14//
15
16extern "C" {
17#include_next <stdbool.h>                                                               // has internal check for multiple expansion
18
19// allows printing as true/false
20#if defined( true )
21#undef true
22#define true ((_Bool)1)
23#endif // true
24
25#if defined( false )
26#undef false
27#define false ((_Bool)0)
28#endif // false
29} // extern "C"
30
31// Local Variables: //
32// tab-width: 4 //
33// mode: c++ //
34// compile-command: "make install" //
35// End: //
Note: See TracBrowser for help on using the repository browser.