# HG changeset patch # User Oleksandr Gavenko # Date 1248781349 -10800 # Node ID 07218dd3cbcaa081d899f17dfdfaf45297e056e9 # Parent 0f84c4f8477026ca16016264385e85a1d54fcad2 Who to see predefined macros? diff -r 0f84c4f84770 -r 07218dd3cbca cpp.rst --- a/cpp.rst Mon Jul 27 17:41:39 2009 +0300 +++ b/cpp.rst Tue Jul 28 14:42:29 2009 +0300 @@ -10,3 +10,25 @@ $ cl /E .c +* Who to see predefined macros? + +See + + http://predef.sourceforge.net/ + http://en.wikipedia.org/wiki/C_preprocessor#Compiler-specific_predefined_macros + +** GNU C Compiler. + + $ gcc -dM -E - < /dev/null + +** HP-UX ansi C compiler. + + $ cc -v EMPTY.c + +** SCO OpenServer C compiler. + + $ cc -## EMPTY.c + +** Sun Studio C/C++ compiler. + + $ cc -## EMPTY.c