RAD Studio |  |

E2220: Invalid macro argument separator (C++)

In a macro definition, arguments must be separated by commas.

The compiler encountered some other character after an argument name.

This is correct:

Copy Code

    #define tri_add(a, b, c)  ((a) + (b) + (c))

This is incorrect:

Copy Code

    #define tri_add(a  b. c)  ((a) + (b) + (c))

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!