ascot diagnostics

A6127

Error: Not enough arguments to the macro ‘{name}’, which takes {expected}

A macro is called with fewer arguments than its #define declares parameters. IRIS refuses to compile the line (MPP5614); ascot leaves the call unexpanded. Pass every parameter the definition declares.

IRIS rejects the example.

ROUTINE Demo.MacroTooFewArguments
#define BETWEEN(%value,%lo,%hi) ((%value>=%lo)&&(%value<=%hi))
Main()
    Write $$$BETWEEN(7,1), ! //! A6127
    Quit

All diagnostics