HP OpenVMS Systems

ask the wizard
Content starts here

DEC C __FILE__ behaviour, options?

» close window

The Question is:

 
In DEC C,  is there a form of the preprocessor directive __FILE__ which that
I can use to obtain the file name excluding the entire
device:[directories...]:file.c?  Most other C
implementations that I have used, simply
supply the file name?
 
Thanks,
John E. Frank
 


The Answer is :

 
  There is no predefined preprocessor for this, other than __FILE__.
  It is, however, obviously possible to use the CC/DECC/DEFINE support
  and some supporting DCL to provide this information for the compiler,
  potentially with or without the use of the preprocessor conditionals.

answer written or last revised on ( 21-SEP-1998 )

» close window