Document const, inline, volatile checks semantics

This commit is contained in:
Boris Kolpackov 2022-04-26 08:53:09 +02:00
parent 86ce902bf6
commit c2e0802100
3 changed files with 18 additions and 0 deletions

View File

@ -1,2 +1,8 @@
// const
/* This check is unusual in that for a positive answer (the compiler supports
const) we undefine const to allow the compiler to recognize it as a keyword
and for a negative answer we define it to nothing so that const is
effectively removed from the user code. */
#undef const

View File

@ -1,2 +1,8 @@
// inline
/* This check is unusual in that for a positive answer (the compiler supports
inline) we undefine inline to allow the compiler to recognize it as a
keyword and for a negative answer we define it to nothing so that inline is
effectively removed from the user code. */
#undef inline

View File

@ -1,2 +1,8 @@
// volatile
/* This check is unusual in that for a positive answer (the compiler supports
volatile) we undefine volatile to allow the compiler to recognize it as a
keyword and for a negative answer we define it to nothing so that volatile
is effectively removed from the user code. */
#undef volatile