Standardized predefined CPP symbols

Martin Minow minow at decvax.UUCP
Wed Jul 11 12:31:53 AEST 1984


For what it's worth, Decus C predefines the following symbols:

decus, pdp11
nomacarg	The Decus C preprocessor doesn't support #define x(args)
rsx, rt11	As appropriate
_FILE_		Source file name	(might be __FILE__)
_LINE_		Current line number	(might be __LINE__)
_DATE_		Compilation date in ctime() format (without the trailing \n)

Vax-11C predefines the following symbols:

vax, vax11c, vms

Moral:  programs may need to know the target machine and operating system,
along with any unique quirks of the compiler.

Martin Minow
decvax!minow



More information about the Comp.unix.wizards mailing list