Book a Demo

Author Topic: Update to macro CSTYLE_COMMENT  (Read 3372 times)

M Maher

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Update to macro CSTYLE_COMMENT
« on: June 03, 2009, 12:58:42 am »
Any chance you can provide a new comment macro, similar to CSTYLE_COMMENT, but performs C++-style comments? i.e.

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\ blah blah blah
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

cheers!

Mat

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Update to macro CSTYLE_COMMENT
« Reply #1 on: June 03, 2009, 08:01:23 am »
You can do this using the WRAP_LINES macro.

Code: [Select]
%if classNotes == "" or genOptGenComments != "T"%
%endTemplate%

///////////////////////////////////////////////////////////
%WRAP_LINES(classNotes, genOptWrapComment, "// ")%
///////////////////////////////////////////////////////////

I have substituted '/' for '\', but I'm assuming that was your intention.  Similar code can be written for the other note templates.