RAD Studio
ContentsIndex
PreviousUpNext
Nesting Parentheses And Commas

The actual_arg_list can contain nested parentheses provided that they are balanced; also, commas appearing within quotes or parentheses are not treated like argument delimiters.

#define ERRMSG(x, str) showerr("Error:", x. str)
#define SUM(x,y)  ((x) + (y))
:
ERRMSG(2, "Press Enter, then ESC");
/* showerr("Error",2,"Press Enter, then ESC"); */
return SUM(f(i, j), g(k, l));
/* return ( (f(i, j)) + (g(k, l)) ); */
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!