Datasheet

Note that the mikroC PRO for AVR does not support a nonportable token pasting
strategy using /**/. For more information on token pasting, refer to the Preprocessor
Operators.
C++ comments
The mikroC PRO for AVR allows single-line comments using two adjacent slashes
(//). The comment can start in any position and extends until the next new line.
The following code
int i; // this is a comment
int j;
parses as:
int i;
int j;
Nested comments
ANSI C doesn’t allow nested comments. The attempt to nest a comment like this
/* int /* declaration */ i; */
fails, because the scope of the first /* ends at the first */. This gives us
i ; */
which would generate a syntax error.
124
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5