macro08

来自「开放源码的编译器open watcom 1.6.0版的源代码」· 代码 · 共 16 行

TXT
16
字号
#
# Macro Test # 8
# Nested macro substitution
#
temp0 = HELLO
temp0 = $(temp0) # Used to result in excessive nesting failure.
temp1 = $(temp0)
temp2 =
temp3 = $(temp2)
all: .symbolic
   # [] used in place of "" as UNIX strips out the quotes
   @echo temp0 substituted is [$(temp0:LLO=0)]
   @echo temp1 substituted is [$(temp1:LLO=1)]
   @echo temp2 substituted is [$(temp2:LLO=2)]
   @echo temp3 substituted is [$(temp3:LLO=3)]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?