ascot diagnostics

A6127

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

The call passes fewer arguments than the macro’s #define lists. IRIS refuses to compile the line (MPP5614: Not enough arguments to macro). Pass every argument the macro’s #define lists.

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