Codegen of header comments
Ältere Kommentare anzeigen
Is there a way for codegen to not generate the date in the header comment. In other words omit the line "C source code generated on: xxxx:" if that is not possible is it possible to not generate any header comments? I still want the comments in the code just not the header stuff.
6 Kommentare
Kaustubha Govind
am 17 Jan. 2013
Which product are you using for code generation? MATLAB Coder or Simulink Coder?
Y
am 17 Jan. 2013
Walter Roberson
am 21 Jan. 2013
I am wondering why you want this? If it is a matter of wanting to be able to compare generated code, then comparison tools can often be configured to ignore something like this. Also there are tools available that could post-process the code to remove the line.
Y
am 28 Jan. 2013
Kaustubha Govind
am 1 Feb. 2013
Y: I don't know the answer for MATLAB Coder (I know how you would do it using Simulink Coder). Could you check with MathWorks Tech Support about this and put in an enhancement request if the functionality doesn't exist?
Antworten (1)
Akshat Dalal
am 26 Feb. 2025
0 Stimmen
Hi
You can modify the default code generation template. It has a <SourceGeneratedOn> token which generates the date. Please refer the following documentation for more information: https://www.mathworks.com/help/ecoder/ug/generate-custom-file-and-function-banners-for-matlab-code-generation.html
Hope this helps.
Kategorien
Mehr zu Simulink Coder finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!