Commit 0206b5a0 authored by snuverink_j's avatar snuverink_j

Merge branch '53-update-macro-example-using-removed-command-show' into 'master'

Resolve "Update MACRO example using removed command SHOW"

See merge request OPAL/documentation/manual!120
parents 3775dc11 8f04403f
......@@ -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
......@@ -1995,7 +1995,7 @@ ORDER::
TIMES::
Array of real times in ns. There must be at least `ORDER`+1 elements in the
array and they must be strictly monotically increasing.
array and they must be strictly monotonically increasing.
VALUES::
Array of real values. The length of `VALUES` must be the same as the length
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment