Is there a way to have a easy to change value in program listing? Something along these lines:
\newcommand{\variable}{2}
And then having somewhere
\begin{lstlisting}
...
i *= \variable;
...
\end{lstlisting}
I would like to keep the format, so I don't want to end and start another listing.

