NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
Comments

Two forms of comments are supported in NXC.

The first are traditional C comments. They begin with '/*' and end with '* /'. These comments are allowed to span multiple lines, but they cannot be nested.

/* this is a comment */
/* this is a two
line comment */
/* another comment...
/* trying to nest...
ending the inner comment...*/
this text is no longer a comment! */

The second form of comments supported in NXC begins with '//' and continues to the end of the current line. These are sometimes known as C++ style comments.

// a single line comment

As you might guess, the compiler ignores comments. Their only purpose is to allow the programmer to document the source code.