I saw code like below
// @include
template <typename T>
.....
// @exclude
Actually, I saw it from here.
does the @include
/@exclude
have special meanings in the comment lines or is it only the author personal style?
There are two ways to add comments in C: // - Single Line Comment. /*... */ - Multi-line Comment.
In C, multi-line comments, /* and */, do not nest. Some guides go so far as to recommend that code sections must never be commented and that if code is to be temporarily disabled one could resort to using an #if 0 directive.
In C/C++ there are two types of comments : Single line comment. Multi-line comment.
When a reader first picks up a listing, or edits a source file, the first thing that he sees is the file header comment at the start of the file. This should help him start to understand what the file is for, what is in it, what it does, why it does it, etc.
This has no special meaning in standard C++ and is probably part of some (documentation) tool that parses source files directly.
In particular, this is code from a book. The author may have chosen this syntax as a way to describe (and possibly automatically extract) what is in the book and what's not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With