fix of MUSR-27: mlog-file should now be ok, enven if there is no FUNCTIONS block
This commit is contained in:
parent
0bb27b7061
commit
6eacc87cee
@ -402,12 +402,17 @@ int PMsrHandler::WriteMsrLogFile()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write functions block
|
// write functions block
|
||||||
f << endl << "FUNCTIONS";
|
cout << endl << ">> GetNoOfFuncs() = " << GetNoOfFuncs() << endl;
|
||||||
CheckAndWriteComment(f, ++lineNo);
|
if (GetNoOfFuncs() != 0) {
|
||||||
for (int i=0; i<GetNoOfFuncs(); i++) {
|
f << endl << "FUNCTIONS";
|
||||||
str = *fFuncHandler->GetFuncString(i);
|
CheckAndWriteComment(f, ++lineNo);
|
||||||
str.ToLower();
|
for (int i=0; i<GetNoOfFuncs(); i++) {
|
||||||
f << endl << str.Data();
|
str = *fFuncHandler->GetFuncString(i);
|
||||||
|
str.ToLower();
|
||||||
|
f << endl << str.Data();
|
||||||
|
CheckAndWriteComment(f, ++lineNo);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
CheckAndWriteComment(f, ++lineNo);
|
CheckAndWriteComment(f, ++lineNo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user