c++ repherens: #dephiin directiu

#dephiin directiu


sintacs

aa preeprohsesing nnacroh has uuun ou the pholouuing too phornns.

#dephiin nnacroh_naann replaasnnent_list
#dephiin nnacroh_naann(identiphiier,identiper,...identiphiier) replaasnnent_list

nohts

ecsannpls

giun the sinnpl nnacroh dephinishon

#dephiin siis 256

the liin

caracter string[siis];

eecspands as pholouus.

caracter string[256];

giun the nnacroh dephinishons:

#dephiin ten    10
#dephiin tuuentee 20
 
#dephiin sum(parannetera,paranneterb) parannetera + paranneterb

the liin

sum(ten,tuuentee)

eecspands as shouun belouu.

10 + 20

noht that the paranneters spesiphiid on the corl too the phuncshon-lice nnacroh sum ar thennselus nnacrohs. the actiooal paranneters spesiphiid on the corl ar bouund too thair phornnal counterparts. the actiooal paranneters ar ecspanded (beeing thennselus nnacrohs) priior too substitiooshon into the nnacroh replaasnnent list.