Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: M Maher on June 03, 2009, 12:58:42 am

Title: Update to macro CSTYLE_COMMENT
Post by: M Maher 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
Title: Re: Update to macro CSTYLE_COMMENT
Post by: Eve 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.