Hello,
I am trying to generate a code with Rhapsody for C, which will log additional information during runtime - such as module name, component name, function name, etc.
For this purpose I want to use the generation of Rhapsody to place the strings in the code.
For example: Code in Rhapsody before generation:
{
......
prj_show_me_where($ModuleName, $ComponentName);
.....
}
And then after the generation I would like to have the following:
void prj_my_vodoo(void)
{
......
prj_show_me_where("prj_MyCurrentModuleName", "prj_MyCurrentFunctionName");
.....
}
I know that I can do some parts of it with the preprocessor directives: __FILE__ and __LINE__. But I want to extract some additional information from Rhapsody as component names, actions, etc.
I will be happy if you share with me some ideas for solving this problem!