Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - __file__ source file name predefined macro http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 __FILE__            Source file name predefined macro
------------------------------------------------------------------------------
 Syntax
   __FILE__

 Arguments
   None.

 Description
   __FILE__ is a predefined global string literal constant whose value
   contains the name of the current source module. The value of __FILE__
   is a lower case string literal. The file extension is always
   appended, while the path name is only present if supplied to the
   compiler on the command line.

 Example
   #define EXAMPLE_CONSTANT
   #include example.hdr

   proc Test_FILE__
   ? "Source file is " + __FILE__
   endproc

   proc main
   Test_FILE__()
   endproc

See Also: __LINE__

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson