File: t_9_017.cpp

package info (click to toggle)
boost1.74 1.74.0-9
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 464,084 kB
  • sloc: cpp: 3,338,324; xml: 131,293; python: 33,088; ansic: 14,336; asm: 4,034; sh: 3,351; makefile: 1,193; perl: 1,036; yacc: 478; php: 212; ruby: 102; lisp: 24; sql: 13; csh: 6
file content (75 lines) | stat: -rw-r--r-- 1,818 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*=============================================================================
    Boost.Wave: A Standard compliant C++ preprocessor library
    http://www.boost.org/

    Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
    Software License, Version 1.0. (See accompanying file
    LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/

// tests, whether true and false are usable a 'normal' identifiers

#define true   1
#define false  0

//R #line 18 "t_9_017.cpp"
//R 1 is defined
#if defined(true)
true is defined
#else
true is not defined
#endif

//R #line 26 "t_9_017.cpp"
//R 0 is defined
#if defined(false)
false is defined
#else
false is not defined
#endif

#undef true
#undef false

//R #line 37 "t_9_017.cpp"
//R true is not defined
#ifndef true
true is not defined
#else
true is defined
#endif

//R #line 45 "t_9_017.cpp"
//R false is not defined
#ifndef false
false is not defined
#else
false is defined
#endif

//H 10: t_9_017.cpp(12): #define
//H 08: t_9_017.cpp(12): true=1
//H 10: t_9_017.cpp(13): #define
//H 08: t_9_017.cpp(13): false=0
//H 10: t_9_017.cpp(17): #if
//H 11: t_9_017.cpp(17): #if defined(true): 1
//H 01: t_9_017.cpp(12): true
//H 02: 1
//H 03: 1
//H 10: t_9_017.cpp(19): #else
//H 10: t_9_017.cpp(25): #if
//H 11: t_9_017.cpp(25): #if defined(false): 1
//H 01: t_9_017.cpp(13): false
//H 02: 0
//H 03: 0
//H 10: t_9_017.cpp(27): #else
//H 10: t_9_017.cpp(31): #undef
//H 09: t_9_017.cpp(31): true
//H 10: t_9_017.cpp(32): #undef
//H 09: t_9_017.cpp(32): false
//H 10: t_9_017.cpp(36): #ifndef
//H 11: t_9_017.cpp(36): #ifndef true: 0
//H 10: t_9_017.cpp(38): #else
//H 10: t_9_017.cpp(44): #ifndef
//H 11: t_9_017.cpp(44): #ifndef false: 0
//H 10: t_9_017.cpp(46): #else