ascot diagnostics

A2716

Error: Too many arguments to the macro ‘{name}’, which takes {expected}

The call passes more arguments than the macro’s #define lists. IRIS refuses to compile the line (MPP5613: Too many arguments to macro). Drop the extra arguments, or list every argument the macro needs in its #define. A macro defined with #def1arg takes the whole text in its parentheses, commas included, as its one argument.

IRIS rejects the example.

ROUTINE Demo.MacroTooManyArguments
#define MAX(%a,%b) $SELECT(%a>%b:%a,1:%b)
Main()
    Write $$$MAX(1,2,3), ! //! A2716
    Quit

All diagnostics