From WikiChip
Difference between revisions of "c/standard predefined macros"
(Created page with "The C '''standard predefined macros''' are a set of macros that must be defined by the implementation. == Predefined macros == {| class="wikitable sortable" |- ! Macro name !...") |
m |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | The C '''standard predefined macros''' are a set of macros that must be defined by the implementation. | + | {{c title|Standard Predefined Macros}} |
| + | The [[C]] '''standard predefined macros''' are a set of macros that must be defined by the implementation. | ||
== Predefined macros == | == Predefined macros == | ||
| Line 28: | Line 29: | ||
| __STDC__ || [[C89]] || | | __STDC__ || [[C89]] || | ||
|- | |- | ||
| − | | __STDC_VERSION__ || [[C90]] | + | | __STDC_VERSION__ || [[C90]] || |
|- | |- | ||
| __STDC_VERSION__ || [[NA1]] || 199409L | | __STDC_VERSION__ || [[NA1]] || 199409L | ||
Latest revision as of 09:27, 4 January 2015
The C standard predefined macros are a set of macros that must be defined by the implementation.
Predefined macros[edit]
| Macro name | since |
|---|---|
| __DATE__ | C89 |
| __FILE__ | C89 |
| __LINE__ | C89 |
| __STDC__ | C89 |
| __STDC_HOSTED__ | C99 |
| __STDC_VERSION__ | C90 |
| __TIME__ | C89 |
Standard C values[edit]
| Macro name | version | value |
|---|---|---|
| __STDC__ | C89 | |
| __STDC_VERSION__ | C90 | |
| __STDC_VERSION__ | NA1 | 199409L |
| __STDC_VERSION__ | C99 | 199901L |
| __STDC_VERSION__ | C11 | 201112L |