diff --git a/control.asciidoc b/control.asciidoc index b0f49cd1873dcc71f00a7ea2c77ef8154a9b7101..9346c67c8d7a38fef6dc13c52c867431c2fb561f 100644 --- a/control.asciidoc +++ b/control.asciidoc @@ -704,20 +704,28 @@ name(); Each actual consists of a set of tokens which replaces all occurrences of the corresponding formal name. The actuals are separated by commas. -Example: +Examples: ---- // macro definitions: SHOWIT(X): MACRO { - SHOW, NAME = X; + VALUE,VALUE={X}; } DOIT(): MACRO { DYNAMIC,LINE=RING,FILE="DYNAMIC.OUT"; } +KS(X,Y): MACRO { + Y = 3e-3*X+0.5e-3; +} // macro calls: SHOWIT(PI); DOIT(); +REAL X = 2; +REAL Y; +KS(X, Y); +SHOWIT(Y); + ---- // EOF \ No newline at end of file