From: uz Date: Tue, 25 May 2010 20:36:40 +0000 (+0000) Subject: Added missing docs for predefined macros, sorted them alphabetically. X-Git-Tag: V2.13.3~761 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=096cb9c0a863d61e74894c4e22c2de61cf117192;p=cc65 Added missing docs for predefined macros, sorted them alphabetically. git-svn-id: svn://svn.cc65.org/cc65/trunk@4666 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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,56 +771,46 @@ 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). + __OPT__ - __SUPERVISION__ + Is defined if the compiler was called with the __OPT_i__ - __VIC20__ + Is defined if the compiler was called with the __OPT_r__ - __FILE__ + Is defined if the compiler was called with the __OPT_s__ - __LINE__ + Is defined if the compiler was called with the __PET__ - __CC65_STD__ + This macro is defined if the target is the PET family of computers (-t pet). - This macro is defined to one of the following depending on the command line option: - - + __PLUS4__ - __OPT__ + This macro is defined if the target is the plus/4 (-t plus4). - Is defined if the compiler was called with the __STDC_HOSTED__ - __OPT_i__ + This macro is expands to the integer constant 1. - Is defined if the compiler was called with the __SUPERVISION__ - __OPT_r__ + This macro is defined if the target is the supervision (-t supervision). - Is defined if the compiler was called with the __TIME__ - __OPT_s__ + This macro expands to the time of translation of the preprocessing + translation unit in the form "hh:mm:ss". - Is defined if the compiler was called with the __VIC20__ + This macro is defined if the target is the vic20 (-t vic20).