Skip to content

Commit da62d61

Browse files
authored
added L to MSVC_LANG literal values per product team feedback (#589)
1 parent 1a066f9 commit da62d61

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/preprocessor/predefined-macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Microsoft Visual C++ supports these additional predefined macros.
229229
230230
- **_MSC_VER** Defined as an integer literal that encodes the major and minor number elements of the compiler's version number. The major number is the first element of the period-delimited version number and the minor number is the second element. For example, if the version number of the Visual C++ compiler is 17.00.51106.1, the **_MSC_VER** macro evaluates to 1700. Enter **cl /?** at the command line to view the compiler's version number. This macro is always defined.
231231
232-
- **_MSVC_LANG** Defined as an integer literal that specifies the C++ language standard targeted by the compiler. When compiled as C++, the macro is the integer literal value 201402 if the [/std:c++14](../build/reference/std-specify-language-standard-version.md) compiler option is set, or by default; it is set to 201703 if the [/std:c++17](../build/reference/std-specify-language-standard-version.md) compiler option is set; and it is set to a higher, unspecified value when the [/std:c++latest](../build/reference/std-specify-language-standard-version.md). Otherwise, the macro is undefined. The **_MSVC_LANG** macro and [/std (Specify Language Standard Version)](../build/reference/std-specify-language-standard-version.md) compiler options are available beginning in Visual Studio 2015 Update 3.
232+
- **_MSVC_LANG** Defined as an integer literal that specifies the C++ language standard targeted by the compiler. When compiled as C++, the macro is the integer literal value 201402L if the [/std:c++14](../build/reference/std-specify-language-standard-version.md) compiler option is set, or by default; it is set to 201703L if the [/std:c++17](../build/reference/std-specify-language-standard-version.md) compiler option is set; and it is set to a higher, unspecified value when the [/std:c++latest](../build/reference/std-specify-language-standard-version.md). Otherwise, the macro is undefined. The **_MSVC_LANG** macro and [/std (Specify Language Standard Version)](../build/reference/std-specify-language-standard-version.md) compiler options are available beginning in Visual Studio 2015 Update 3.
233233
234234
- **__MSVC_RUNTIME_CHECKS** Defined as 1 when one of the [/RTC](../build/reference/rtc-run-time-error-checks.md) compiler options is set. Otherwise, undefined.
235235

0 commit comments

Comments
 (0)