File: CondMacAlias.fth

package info (click to toggle)
fcode-utils 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 46,768 kB
  • sloc: ansic: 9,717; csh: 241; makefile: 129; sh: 17
file content (58 lines) | stat: -rw-r--r-- 1,122 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
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
\  Test Conditionals and Locals with Macros and Aliases
\      without (intentional) errors, this time...
\  Updated Fri, 10 Mar 2006 at 14:26 PST by David L. Paktor

headers
fcode-version2

fload GlobalLocalValues.fth

Global-definitions

alias  // \
alias  (((  (

alias loc{  {

alias   [whatden]  [endif]
alias   [younwhudahmy]  [else]
[macro]  [donewidit]  [whatden]
[macro]  [udderwise]  [younwhudahmy]


alias [isitdere]    [ifexist]
alias [ifitaint]    [ifnexist]
[macro] doIgotit    [isitdere]
[macro] Iaintgotit  [ifitaint]

[macro] [ifitis] Iaintgotit  gumblefritz

device-definitions

\  Don't define  gumblefritz

[message]  Didn't define  gumblefritz

[ifitaint]  gumblefritz
   #message"  Can't ignore  fload.  What if it's got a balancing [endif] ?"
   [message] Or a balancing  [else]
   fload CondMacAlias_01.fth
[udderwise]
   #message"  Dis ain't gonna show even if it has an [endif] "
   [message] Dere's an  [endif]  here too
[donewidit]

new-device

create gumblefritz
[message]  Just defined  gumblefritz

doIgotit  gumblefritz

    fload CondMacAlias_01.fth

[donewidit]

finish-device

fcode-end