This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to enable nesting comments

Hello Forum,
I wanna use nesting comments with µvision/C166. How to enable them? It is really annoying to work without them.
Thanks - Peter

N.B.: Nesting comments means something like this:
/* bla bla /* This is bla */
blub blub */
All of this is a comment. Without nesting comments the comment would end just before "blub blub" and the second "*/" would end up with an error.

Parents
  • I couldn't find a specific directive Peter, you can cheat and change even the character that'll be used as a comment for example.

    /* traditional comment */
    >>>> cheat comment <<<<

    I cannot found a preprocessor directive. I think that the algorithm used to find comments don't allow this kind of nesting. If the algorithm finds /* he will only stop to set the text as a comment if it finds a */ character.

Reply
  • I couldn't find a specific directive Peter, you can cheat and change even the character that'll be used as a comment for example.

    /* traditional comment */
    >>>> cheat comment <<<<

    I cannot found a preprocessor directive. I think that the algorithm used to find comments don't allow this kind of nesting. If the algorithm finds /* he will only stop to set the text as a comment if it finds a */ character.

Children
No data