23-09-2016, 07:46 AM
C90 and C99 strictly conforming compilers have well-defined behaviour for // within a /* comment. However many compilers are non strictly conforming and a variety of behaviour has been observed.
We suggest two methods for including hyperlinks within a comment.
We suggest two methods for including hyperlinks within a comment.
- In C99, the use of // within a // comment is permitted in the Exception to this rule.
Code:// See https://somewhere.over.the.rainbow/way/up/high.htm
- Create a deviation/permit which permits the inclusion of // within a /* comment after checks have performed on the compiler that is used to confirm that such inclusion behaves as expected.
Posted by and on behalf of the MISRA C Working Group