Re: Evaluating arithmetic expressions with macros (eval)

Peter Hull <[email protected]> Thu, 12 Oct 2023 15:04:25 +0100
Newsgroups gmane.comp.sysutils.autoconf.general
Message-ID <CAK9Gx1f9SvL8iiNOL23itMMp4Mp-=tuhN4r_XCf2Pg9k64OP=Q@mail.gmail.com>
On Thu, 12 Oct 2023 at 14:41, Sébastien Hinderer
<[email protected]> wrote:
> Aht alone was useful. It made me realise that I was using eval, rather
> than m4_eval. I assume this is why it didn't work as expected.
>
> However, eval *is* documented in section 12.2 Evaluating integer
> expressions of the m4 info manual.
The 'm4_' prefix is related to the `-P` option I believe, see
https://www.gnu.org/software/m4/manual/html_node/Operation-modes.html#Operation-modes
Peter