File: cond.cppo

package info (click to toggle)
cppo 1.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 588 kB
  • sloc: ml: 2,133; makefile: 54; sh: 11
file content (47 lines) | stat: -rw-r--r-- 466 bytes parent folder | download | duplicates (5)
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
#if 1 = 1
#else
#error "ignored #else (?)"
#endif

#if true
  banana
#elif false
  apple
  #error "ignored #elif (?)"
#endif

#if false
  earthworm
  #error ""
#elif true
  apricot
#endif

#if false
  cuckoo
  #error ""
#else
  #if false
    egg
    #error ""
  #else
    nest
  #endif
#endif

#define X 3

#if false
  helicopter
  #error ""
#elif false
  ocean
  #error ""
#else
  #if X = 12
    sand
    #error ""
  #elif 4 * X = 12
    sea urchin
  #endif
#endif