RAD Studio
ContentsIndex
PreviousUpNext
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:

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

This is incorrect:

#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!