Files
eth-summaries/semester4/fmfp/parts/04_modelling/01_promela/03_macros.tex
T
2026-06-07 12:18:14 +02:00

6 lines
378 B
TeX

\subsubsection{Macros}
Promela does \textit{not} support procedures. However, many of the effects (apart from recursion) can be achieved with macros.
We define them using \mint{promela}|inline name(arg1, arg2) { /* body */ }|
As is the case in \texttt{C}, they are simply replaced in the code and thus have no new variable scope, support no recursion and have no return value.