Not that I am aware of, but there is one to tell you in which file you are: __FILE__
The C language does not have the RTTI of C++
I am using this a lot in one application under CVI 6.0.
But be aware of on thing, this is valid only from the current function like __LINE__
behind you should treat __FILE__ as a null terminated string : char *
For example:
void main(void)
{
DisplayErrorMessage(__FILE__, __LINE__, "Error Msg");
}
void DisplayErrorMessage(char * SourceFile, int SourceLine , char * Msg)
{
DebugPrintf("Msg=%s",Msg);
DebugPrintf("File=%s",SourceFile);
DebugPrintf("Line=%d",SourceLine );
}
Best Regards,
Farid.