Datasheet
char
name
[
]
=
"mikro foo" /* just one token here! */
;
Line Splicing with Backslash (\)
A special case occurs if a line ends with a backslash (\). Both backslash and new
line character are discarded, allowing two physical lines of a text to be treated as
one unit. So, the following code
"mikroC PRO \
Compiler"
parses into "mikroC PRO Compiler". Refer to String Constants for more information.
COMMENTS
Comments are pieces of a text used to annotate a program and technically are
another form of whitespace. Comments are for the programmer’s use only; they are
stripped from the source text before parsing. There are two ways to delineate com-
ments: the C method and the C++ method. Both are supported by mikroC PRO for
AVR.
You should also follow the guidelines on the use of whitespace and delimiters in
comments, discussed later in this topic to avoid other portability problems.
C comments
C comment is any sequence of characters placed after the symbol pair /*. The com-
ment terminates at the first occurance of the pair */ following the initial /*. The entire
sequence, including four comment-delimiter symbols, is replaced by one space after
macro expansion.
In the mikroC PRO for AVR,
int /* type */ i /* identifier */;
parses as:
int i;
123
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Language Reference
mikroC PRO for AVR
CHAPTER 5