mirror of
https://github.com/janishutz/eth-summaries.git
synced 2026-06-12 17:41:20 +02:00
6 lines
378 B
TeX
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.
|