From b93f9fbba43693e549dd2c5935a4f7622e5979be Mon Sep 17 00:00:00 2001 From: acqn Date: Thu, 18 Aug 2022 22:51:23 +0800 Subject: [PATCH] Updated documents about the predefined macros. --- doc/cc65.sgml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/doc/cc65.sgml b/doc/cc65.sgml index 43039f713..683249bda 100644 --- a/doc/cc65.sgml +++ b/doc/cc65.sgml @@ -1202,17 +1202,34 @@ The compiler defines several macros at startup: This macro is defined if the target is the Commodore Plus/4 (-t plus4). - __STDC_HOSTED__ - - This macro is expands to the integer constant 1. - __SIM6502__ This macro is defined if the target is sim65 in 6502 mode (-t sim6502). __SIM65C02__ + This macro is defined if the target is sim65 in 65C02 mode (-t sim65c02). + __STDC_HOSTED__ + + This macro expands to the integer constant 1. + + __STDC_NO_ATOMICS__ + + This macro expands to the integer constant 1 if the language standard is cc65 (--standard cc65). + + __STDC_NO_COMPLEX__ + + This macro expands to the integer constant 1 if the language standard is cc65 (--standard cc65). + + __STDC_NO_THREADS__ + + This macro expands to the integer constant 1 if the language standard is cc65 (--standard cc65). + + __STDC_NO_VLA__ + + This macro expands to the integer constant 1 if the language standard is cc65 (--standard cc65). + __SUPERVISION__ This macro is defined if the target is the Supervision (-t supervision).