problem with preprocessed f90 code

Magnus Hagdorn Magnus.Hagdorn@glg.ed.ac.uk
Tue Aug 8 12:37:00 GMT 2006


On Tue, 2006-08-08 at 13:01 +0100, Magnus Hagdorn wrote:
> Hi all,
> I am having an obscure problem. I would like to stringify a macro
> argument, e.g.
> 
> 
> #define MESSAGE(msg) write(*,*) #msg
> 
I solved the problem using
#define MESSAGE(msg) write(*,*) "msg"

as an aside. is there a sane way of ensuring that preprocessed lines
have less than 130-odd characters required by the standard?

cheers
magi



More information about the Fortran mailing list