__FILE__

Top  Previous  Next

__FILE__ returns a STRING with the name of the current source file. This is especially useful for debugging purposes.

Also see __LINE__.

 

Example:

INCLUDE rtcu.inc
 
PROGRAM test;
 
// Show the name of the file that is being executed:
DebugMsg(message := "Current file-name is "+__FILE__);
 
END_PROGRAM;