From 096cb9c0a863d61e74894c4e22c2de61cf117192 Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 25 May 2010 20:36:40 +0000 Subject: [PATCH] Added missing docs for predefined macros, sorted them alphabetically. git-svn-id: svn://svn.cc65.org/cc65/trunk@4666 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- doc/cc65.sgml | 102 ++++++++++++++++++++++++++++---------------------- 1 file changed, 57 insertions(+), 45 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 3c80de41f..50236231c 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -684,13 +684,6 @@ This cc65 version has some extensions to the ISO C standard. The compiler defines several macros at startup: - - __CC65__ - - This macro is always defined. Its value is the version number of the - compiler in hex. For example, version 2.10.1 of the compiler has this macro - defined as __APPLE2__ This macro is defined if the target is the Apple ][ (-t apple2). @@ -708,9 +701,9 @@ The compiler defines several macros at startup: This macro is defined if the target is the Oric Atmos (-t atmos). - __CBM__ + __C128__ - This macro is defined if the target system is one of the CBM targets. + This macro is defined if the target is the c128 (-t c128). __C16__ @@ -720,9 +713,9 @@ The compiler defines several macros at startup: This macro is defined if the target is the c64 (-t c64). - __C128__ + __CBM__ - This macro is defined if the target is the c128 (-t c128). + This macro is defined if the target system is one of the CBM targets. __CBM510__ @@ -733,10 +726,39 @@ The compiler defines several macros at startup: This macro is defined if the target is one of the CBM 600/700 family of computers (called B series in the US). + __CC65__ + + This macro is always defined. Its value is the version number of the + compiler in hex. For example, version 2.10.1 of the compiler has this macro + defined as __CC65_STD__ + + This macro is defined to one of the following depending on the command line option: + + + + __DATE__ + + This macro expands to the date of translation of the preprocessing + translation unit in the form "Mmm dd yyyy". + + __FILE__ + + This macro expands to a string containing the name of the C source file. + __GEOS__ This macro is defined if you are compiling for the GEOS system (-t geos). + __LINE__ + + This macro expands to the current line number. + __LUNIX__ This macro is defined if you are compiling for the LUnix system (-t lunix). @@ -749,40 +771,6 @@ The compiler defines several macros at startup: This macro is defined if the target is the NES (-t nes). - __PET__ - - This macro is defined if the target is the PET family of computers (-t pet). - - __PLUS4__ - - This macro is defined if the target is the plus/4 (-t plus4). - - __SUPERVISION__ - - This macro is defined if the target is the supervision (-t supervision). - - __VIC20__ - - This macro is defined if the target is the vic20 (-t vic20). - - __FILE__ - - This macro expands to a string containing the name of the C source file. - - __LINE__ - - This macro expands to the current line number. - - __CC65_STD__ - - This macro is defined to one of the following depending on the command line option: - - - __OPT__ Is defined if the compiler was called with the __PET__ + + This macro is defined if the target is the PET family of computers (-t pet). + + __PLUS4__ + + This macro is defined if the target is the plus/4 (-t plus4). + + __STDC_HOSTED__ + + This macro is expands to the integer constant 1. + + __SUPERVISION__ + + This macro is defined if the target is the supervision (-t supervision). + + __TIME__ + + This macro expands to the time of translation of the preprocessing + translation unit in the form "hh:mm:ss". + + __VIC20__ + + This macro is defined if the target is the vic20 (-t vic20).