@@ -50,6 +50,13 @@ void CiMainGenerator::Generate(std::vector<MessageDescriptor_t*>& msgs, const Fs
5050
5151void CiMainGenerator::Gen_MainHeader ()
5252{
53+ // write comment start text
54+ if (fdesc->start_info .size () >0 )
55+ {
56+ // replace all '\n' on "\n //" for c code comment text
57+ fwriter->AppendLine (" //" +std::regex_replace (fdesc->start_info ,std::regex (" \n " )," \n //" ));
58+ }
59+
5360 fwriter->AppendLine (" #pragma once" ,2 );
5461 fwriter->AppendLine (" #ifdef __cplusplus\n extern\" C\" {\n #endif" ,2 );
5562 fwriter->AppendLine (" #include <stdint.h>" ,2 );
@@ -196,6 +203,12 @@ void CiMainGenerator::Gen_MainHeader()
196203
197204void CiMainGenerator::Gen_MainSource ()
198205{
206+ if (fdesc->start_info .size () >0 )
207+ {
208+ // replace all '\n' on "\n //" for c code comment text
209+ fwriter->AppendLine (" //" +std::regex_replace (fdesc->start_info ,std::regex (" \n " )," \n //" ));
210+ }
211+
199212// include main header file
200213 fwriter->AppendLine (StrPrint (" #include\" %s\" " , fdesc->core_h .fname .c_str ()),3 );
201214
@@ -257,6 +270,12 @@ void CiMainGenerator::Gen_MainSource()
257270
258271void CiMainGenerator::Gen_ConfigHeader ()
259272{
273+ if (fdesc->start_info .size () >0 )
274+ {
275+ // replace all '\n' on "\n //" for c code comment text
276+ fwriter->AppendLine (" //" +std::regex_replace (fdesc->start_info ,std::regex (" \n " )," \n //" ));
277+ }
278+
260279 fwriter->AppendLine (" #pragma once" ,2 );
261280
262281 fwriter->AppendLine (" /* include common dbccode configurations */" );
@@ -331,6 +350,12 @@ void CiMainGenerator::Gen_ConfigHeader()
331350
332351void CiMainGenerator::Gen_FMonHeader ()
333352{
353+ if (fdesc->start_info .size () >0 )
354+ {
355+ // replace all '\n' on "\n //" for c code comment text
356+ fwriter->AppendLine (" //" +std::regex_replace (fdesc->start_info ,std::regex (" \n " )," \n //" ));
357+ }
358+
334359 fwriter->AppendLine (" #pragma once" ,2 );
335360
336361 fwriter->AppendLine (" #ifdef __cplusplus\n extern\" C\" {\n #endif" ,2 );
@@ -363,6 +388,12 @@ separated .c file. If it won't be done the linkage error will happen\n*/", 2);
363388
364389void CiMainGenerator::Gen_FMonSource ()
365390{
391+ if (fdesc->start_info .size () >0 )
392+ {
393+ // replace all '\n' on "\n //" for c code comment text
394+ fwriter->AppendLine (" //" +std::regex_replace (fdesc->start_info ,std::regex (" \n " )," \n //" ));
395+ }
396+
366397 fwriter->AppendLine (StrPrint (" #include\" %s\" " , fdesc->fmon_h .fname .c_str ()),2 );
367398// put diagmonitor ifdef selection for including @drv-fmon header
368399// with FMon_* signatures to call from unpack function
@@ -376,7 +407,7 @@ next generation will completely clear all manually added code (!)\n\
376407for (size_t num =0 ; num < sigprt->sigs_expr .size (); num++)
377408 {
378409auto msg = &(sigprt->sigs_expr [num]->msg );
379- fwriter->AppendLine (StrPrint (" void FMon_%s_%s(FrameMonitor_t* _mon)\n {\n }\n " ,
410+ fwriter->AppendLine (StrPrint (" void FMon_%s_%s(FrameMonitor_t* _mon)\n {\n (void)_mon; \n }\n " ,
380411 msg->Name .c_str (), fdesc->drvname .c_str ()));
381412 }
382413