Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit fea8830b authored by snuverink_j's avatar snuverink_j
Browse files

Merge branch '53-update-macro-example-using-removed-command-show-2' into 'Manual-2.4'

Resolve "Update MACRO example using removed command SHOW" - 2.4

See merge request OPAL/documentation/manual!121
parents cf0a10d2 fe2e1138
No related branches found
No related tags found
No related merge requests found
...@@ -704,20 +704,28 @@ name(); ...@@ -704,20 +704,28 @@ name();
Each actual consists of a set of tokens which replaces all occurrences Each actual consists of a set of tokens which replaces all occurrences
of the corresponding formal name. The actuals are separated by commas. of the corresponding formal name. The actuals are separated by commas.
Example: Examples:
---- ----
// macro definitions: // macro definitions:
SHOWIT(X): MACRO { SHOWIT(X): MACRO {
SHOW, NAME = X; VALUE,VALUE={X};
} }
DOIT(): MACRO { DOIT(): MACRO {
DYNAMIC,LINE=RING,FILE="DYNAMIC.OUT"; DYNAMIC,LINE=RING,FILE="DYNAMIC.OUT";
} }
KS(X,Y): MACRO {
Y = 3e-3*X+0.5e-3;
}
// macro calls: // macro calls:
SHOWIT(PI); SHOWIT(PI);
DOIT(); DOIT();
REAL X = 2;
REAL Y;
KS(X, Y);
SHOWIT(Y);
---- ----
// EOF // EOF
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment