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 - __hdx__ mkhdr support predefined macro http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 __HDX__             MkHdr support predefined macro
------------------------------------------------------------------------------
 Syntax
   __HDX__

 Arguments
   None.

 Description
   __HDX__ is a predefined global string constant whose value contains
   the base name of the current source module with the extension .hdx
   appended. The __HDX__ constant has been included for special use with
   the MkHdr utility. __HDX__ is not a string literal, therefore it can
   not be applied in string expressions. Use __HDX__ only in #include
   directives.

 Example
   #define EXAMPLE_CONSTANT
   #include example.hdr

   // For a module named test.prg, the __HDX__ constant expands to
   // test.hdx.
   
   // The line below results in a "Missing file" compiler error, unless
   // a file with the respective name (e. g. test.hdx) exists.
   
   // #include __HDX__
   
   proc Test_HDX__
   endproc

   proc main
   Test_HDX__()
   endproc

See Also: #include

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