Skip to content

Commit 58293b4

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#3516 from danieljennings/patch-1
Update _MSC_VER table with VS2022 RTW version.
2 parents f2674b9 + 83b1d1c commit 58293b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/preprocessor/predefined-macros.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ MSVC supports these additional predefined macros.
270270
| Visual Studio 2019 version 16.7 | 1927 |
271271
| Visual Studio 2019 version 16.8, 16.9 | 1928 |
272272
| Visual Studio 2019 version 16.10, 16.11 | 1929 |
273+
| Visual Studio 2022 RTW (17.0) | 1930 |
273274
274275
To test for compiler releases or updates in a given version of Visual Studio or after, use the `>=` operator. You can use it in a conditional directive to compare `_MSC_VER` against that known version. If you have several mutually exclusive versions to compare, order your comparisons in descending order of version number. For example, this code checks for compilers released in Visual Studio 2017 and later. Next, it checks for compilers released in or after Visual Studio 2015. Then it checks for all compilers released before Visual Studio 2015:
275276

0 commit comments

Comments
 (0)