Renesas Technology, Tools FAQs
Last Updated: July 21, 2000
Document Number: 01051279_e
Q.
When I put "/*" in a comment starting with "//", the compiler generates an error. Can't I use this character combination?
[Example program]
main()
{
// /* abc
}
A.
The NC30 compiler processes a character string which is enclosed with "/*" and "*/", or starts from "//", as a comment. But when
these control codes appears in the same statement, the compiler proceeds with "/* */" as the first priority code. Therefore, when the
compiler finds code "/*" in the above statement, the compiler tries to find "*/" to close the comment. If the compiler cannot find the
pair code, it will issue an error. Therefore, you have to use code "/*" as a pair with "/*". Please note that other ANSI compliant
compilers treat this combination in the same way.
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales