Multi-line comment style in rtwbuild code generation.
조회 수: 1 (최근 30일)
이전 댓글 표시
I am using Simulink/Embedded Coder to generate C++ code from MATLAB functions in MATLAB R2018a.
I have observed that multi-line comments
% My
% multi-line
% comment
result in the following C++ code
/* My */
/* multi-line */
/* comment */
by setting the 'CommentStyle' parameter to 'Multi-line' in the Simulink Coder model configuration parameters.
Especially for multi-line comments along several lines, the trailing */ in each comment line looks rather cluttered. Is there a way or parameter to get something like the C++ code below?
/* My
* multi-line
* comment
*/
댓글 수: 4
Rik
2022년 1월 18일
I would suggest submitting a bug report or an enhancement request. The parameter name sounds like it should generate the style you indicated.
Maybe this is to increase portability of code. If know that for C not all compilers will accept multi-line comments.
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!