Topic: white-space at end of empty macro definition
Author: Stephan Bergmann <stephan.bergmann@sun.com>
Date: Fri, 23 Apr 2010 10:59:24 CST Raw View
N3092 16[cpp]/4: "The only white-space characters that shall appear between
preprocessing tokens within a preprocessing directive (from just after the
introducing # preprocessing token through just before the terminating
new-line character) are space and horizontal-tab (including spaces that have
replaced comments or possibly other white-space characters in translation
phase 3)."
N3092 16.3[cpp.replace]/3: "There shall be white-space between the
identifier and the replacement list in the definition of an object-like
macro."
If the replacement list consists of no tokens, this nevertheless requires
space and/or horizontal-tab white-space between the identifier and the
terminating new-line, right?
-Stephan
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use
mailto:std-c++@netlab.cs.rpi.edu<std-c%2B%2B@netlab.cs.rpi.edu>
]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Author: ThosRTanner <ttanner2@bloomberg.net>
Date: Fri, 30 Apr 2010 11:37:45 CST Raw View
On Apr 23, 5:59 pm, Stephan Bergmann <stephan.bergm...@sun.com> wrote:
>
> N3092 16.3[cpp.replace]/3: "There shall be white-space between the
> identifier and the replacement list in the definition of an object-like
> macro."
>
> If the replacement list consists of no tokens, this nevertheless requires
> space and/or horizontal-tab white-space between the identifier and the
> terminating new-line, right?
>
Doesn't that just mean there's no replacement list, so no white space
is needed?
--
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use
mailto:std-c++@netlab.cs.rpi.edu<std-c%2B%2B@netlab.cs.rpi.edu>
]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]