File: DefCondTst.fth

package info (click to toggle)
fcode-utils 1.0.2-7
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 46,976 kB
  • ctags: 1,402
  • sloc: ansic: 9,705; csh: 241; makefile: 106; sh: 17
file content (24 lines) | stat: -rw-r--r-- 554 bytes parent folder | download | duplicates (20)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
\  Test Command-line-defined conditional
\  Updated Wed, 11 May 2005 at 09:45 by David L. Paktor
\
\  Symbol moogoo is either defined true (-1) or false (0), or is absent

[ifndef] moogoo
   f[ 
   .( Y'gotta define MooGoo on the command-line.)
   ." "!"
   ." X
a line."  ." Another on the line."
   ." "t(Lower-case will be okay, too)"
   f]
      #message Use  -D moogoo=true   or  -D moogoo=false
     [message]		or even  -D moogoo=-1   or  -D moogoo=0
     [#message]
[else]
   f[ 
       [defined] moogoo
   f]

fload TokConstCondTst01.fth
[then]