| |||
| Home > Working with the CLI > Macro language > Macro comments | |||
You can use comments in your macros to document your code. Any characters identified as belonging to a comment are ignored by RealView Debugger. The following rules apply to comments in macros:
C style comments begin with
a slash followed by an asterisk (/*) and end
with an asterisk followed by a slash (*/). Also
the comment text must be on a single line, for example:
/* comment */
/*
another comment
*/
C++ style comments begin with two slashes (//)
and end when the end of the line is reached, for example:
// This is a line comment
// Copyright (c) ARM Limited
Comments can begin with //# and
end when the end of the line is reached.
Only // or //# comments
can be placed at the end of a macro statement, for example:
macro_statement; // comment
Comments cannot be nested.