Embedded coder automatic string replacement in comments
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 20 Apr. 2018
Beantwortet: MathWorks Support Team
am 20 Apr. 2018
I would like more control over the block comments in the generated code. The comments are added to the following field:
Right click block > Properties > General > Description
However '/*' and '*/' strings entered in the 'Description' box will appear as '/+' and '+/' in the generated code. I need '/*' and '*/' strings in specific places in the comments for doxygen purposes. Can I disable this string replacement?
Akzeptierte Antwort
MathWorks Support Team
am 3 Mai 2018
There is functionality in place to support doxygen formatting in the generated comments. From the following documentation:
you will notice that you can customize the function banner which will change the formatting of the comments generated for functions (such as for an atomic subsystem). Some of the formatting options available are related to doxygen. The only issue is that customizing the function banner would not be specific to any given function/block, but describes the general format of the banner for all functions. Also, you cannot go beyond the formatting options that are available and add '/*' strings in the block comments because they will still be replaced with '/+' in the generated code to avoid errors that would be caused by adding '/*' in the comments incorrectly.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!