Skip to content

Commit 4423e68

Browse files
authored
Merge branch 'MicrosoftDocs:main' into main
2 parents 6fc256e + 0856e91 commit 4423e68

17 files changed

+68
-71
lines changed

docs/atl/reference/compiler-options-macros.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description: "Learn more about: Compiler Options Macros"
33
title: "Compiler Options Macros"
44
ms.date: "08/19/2019"
5-
f1_keywords: ["_ATL_ALL_WARNINGS", "_ATL_APARTMENT_THREADED", "_ATL_CSTRING_EXPLICIT_CONSTRUCTORS ", "_ATL_ENABLE_PTM_WARNING", "_ATL_FREE_THREADED", "_ATL_MULTI_THREADED", "_ATL_NO_AUTOMATIC_NAMESPACE", "_ATL_NO_COM_SUPPORT", "ATL_NO_VTABLE", "ATL_NOINLINE", "_ATL_SINGLE_THREADED"]
5+
f1_keywords: ["_ATL_ALL_WARNINGS", "_ATL_APARTMENT_THREADED", "_ATL_CSTRING_EXPLICIT_CONSTRUCTORS ", "_ATL_ENABLE_PTM_WARNING", "_ATL_FREE_THREADED", "_ATL_MODULES", "_ATL_MULTI_THREADED", "_ATL_NO_AUTOMATIC_NAMESPACE", "_ATL_NO_COM_SUPPORT", "ATL_NO_VTABLE", "ATL_NOINLINE", "_ATL_SINGLE_THREADED"]
66
helpviewer_keywords: ["compiler options, macros"]
77
ms.assetid: a869adc6-b3de-4299-b040-9ae20b45f82c
88
---
@@ -17,6 +17,7 @@ These macros control specific compiler features.
1717
|[_ATL_CSTRING_EXPLICIT_CONSTRUCTORS](#_atl_cstring_explicit_constructors)|Makes certain `CString` constructors explicit, preventing any unintentional conversions.|
1818
|[_ATL_ENABLE_PTM_WARNING](#_atl_enable_ptm_warning)|Define this macro to require C++ standard syntax. It generates the C4867 compiler error when non-standard syntax is used to initialize a pointer to a member function.|
1919
|[_ATL_FREE_THREADED](#_atl_free_threaded)|Define if one or more of your objects use free or neutral threading.|
20+
|[_ATL_MODULES](#_ATL_MODULES)|Allows you to compile ATL projects with [permissive-](../../build/reference/permissive-standards-conformance.md) and use ATL with [C++ modules](../../cpp/modules-cpp.md).|
2021
|[_ATL_MULTI_THREADED](#_atl_multi_threaded)|A symbol that indicates the project will have objects that are marked as Both, Free or Neutral. The macro [_ATL_FREE_THREADED](#_atl_free_threaded) should be used instead.|
2122
|[_ATL_NO_AUTOMATIC_NAMESPACE](#_atl_no_automatic_namespace)|A symbol that prevents the default use of namespace as ATL.|
2223
|[_ATL_NO_COM_SUPPORT](#_atl_no_com_support)|A symbol that prevents COM-related code from being compiled with your project.|
@@ -122,6 +123,14 @@ _ATL_FREE_THREADED
122123

123124
Specifies free threading. Free threading is equivalent to a multithread apartment model. See [Specifying the Project's Threading Model](../../atl/specifying-the-threading-model-for-a-project-atl.md) for other threading options, and [Options, ATL Simple Object Wizard](../../atl/reference/options-atl-simple-object-wizard.md) for a description of the threading models available for an ATL object.
124125

126+
## <a name="_ATL_MODULES"></a> `_ATLMODULES`
127+
128+
Allows you to compile ATL projects with [permissive-](../../build/reference/permissive-standards-conformance.md) and use ATL with [C++ modules](../../cpp/modules-cpp.md).
129+
130+
```
131+
_ATL_MODULES
132+
```
133+
125134
## <a name="_atl_multi_threaded"></a> _ATL_MULTI_THREADED
126135

127136
A symbol that indicates the project will have objects that are marked as Both, Free or Neutral.
Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: "Learn more about: /WX (Treat linker warnings as errors)"
33
title: "/WX (Treat linker warnings as errors)"
4-
ms.date: 09/08/2022
4+
ms.date: 02/02/2023
55
f1_keywords: ["VC.Project.VCLinkerTool.TreatLinkerWarningsAsErrors"]
66
helpviewer_keywords: ["/WX linker option", "-WX linker option", "WX linker option"]
77
ms.assetid: e4ba97c7-93f7-43ae-a4bb-d866790926c9
@@ -12,23 +12,32 @@ Specifies whether to treat linker warnings as errors.
1212

1313
## Syntax
1414

15-
> **`/WX`**\[**`:NO`**]
15+
> **`/WX`**\[**`:NO`**]\
16+
> **`/WX`**\[**`:`***`nnnn`*\[**`,`***`nnnn`*...]]
1617
1718
## Remarks
1819

1920
The **`/WX`** linker option causes no output file to be generated if the linker generates a warning.
2021

2122
This option is similar to **`/WX`** for the compiler. For more information, see [/w, /W0, /W1, /W2, /W3, /W4, /w1, /w2, /w3, /w4, /Wall, /wd, /we, /wo, /Wv, /WX (Warning Level)](compiler-option-warning-level.md). However, specifying **`/WX`** for the compilation doesn't imply that **`/WX`** will also be in effect for the link phase; you must explicitly specify **`/WX`** for each tool.
2223

23-
By default, **`/WX`** isn't in effect. To treat linker warnings as errors, specify **`/WX`**. **`/WX:NO`** is the same as not specifying **`/WX`**.
24+
In Visual Studio 2022 and later versions, you can specify **`/WX`** with one or more comma-separated *`nnnn`* arguments, where *`nnnn`* is a number between 4000 and 4999. The linker treats the corresponding *`LNKnnnn`* warnings as errors.
25+
26+
By default, **`/WX`** isn't in effect. To treat linker warnings as errors, specify a **`/WX`** option. **`/WX:NO`** is the same as not specifying **`/WX`**, and overrides any previous **`/WX`** linker option.
2427

2528
### To set this linker option in the Visual Studio development environment
2629

2730
1. Open the project's **Property Pages** dialog box. For more information, see [Set compiler and build properties](../working-with-project-properties.md).
2831

29-
1. Select the **Configuration Properties** > **Linker** > **General** property page.
32+
1. To set or unset all warnings as errors, select the **Configuration Properties** > **Linker** > **General** property page.
33+
34+
1. Modify the **Treat Linker Warnings as Errors** property.
35+
36+
1. To set specific warnings as errors, select the **Configuration Properties** > **Linker** > **Command Line** property page.
37+
38+
1. In the **Additional Options** edit control, add *`/WX:warnings`*, where *`warnings`* is a comma-separated list of linker warning numbers.
3039

31-
1. Modify the **Treat Linker Warnings as Errors** property. Choose **OK** or **Apply** to save your changes.
40+
1. Choose **OK** or **Apply** to save your changes.
3241

3342
### To set this linker option programmatically
3443

@@ -37,4 +46,5 @@ By default, **`/WX`** isn't in effect. To treat linker warnings as errors, speci
3746
## See also
3847

3948
[MSVC linker reference](linking.md)\
40-
[MSVC linker options](linker-options.md)
49+
[MSVC linker options](linker-options.md)\
50+
[`/WX` compiler option](./compiler-option-warning-level.md)

docs/c-runtime-library/errno-doserrno-sys-errlist-and-sys-nerr.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
description: "Learn more about: errno, _doserrno, _sys_errlist, and _sys_nerr"
33
title: "errno, _doserrno, _sys_errlist, and _sys_nerr"
44
ms.date: "11/04/2016"
5-
api_name: ["_errno"]
6-
api_location: ["msvcrt.dll"]
7-
api_type: ["DLLExport"]
8-
topic_type: ["apiref"]
95
f1_keywords: ["errno", "ERRNO/errno", "_doserrno", "ERRNO/_doserrno", "_sys_errlist", "STDLIB/_sys_errlist", "_sys_nerr", "STDLIB/_sys_nerr"]
106
helpviewer_keywords: ["error codes, printing", "sys_errlist global variable", "doserrno global variable", "errno global variable", "_doserrno global variable", "_sys_errlist global variable", "_sys_nerr global variable", "sys_nerr global variable"]
117
ms.assetid: adbec641-6d91-4e19-8398-9a34046bd369

docs/c-runtime-library/internal-crt-globals-and-functions.md

Lines changed: 21 additions & 23 deletions
Large diffs are not rendered by default.

docs/c-runtime-library/internal-set-app-type.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.assetid: f0ac0f4d-70e6-4e96-9e43-eb9d1515490c
1212
---
1313
# `__set_app_type`
1414

15-
Sets the current application type.
15+
Sets the current application type. This internal function is obsolete.
1616

1717
## Syntax
1818

docs/c-runtime-library/ismbc-routines.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
description: "Learn more about: _ismbc Routines"
33
title: "_ismbc Routines"
44
ms.date: "11/04/2016"
5-
api_location: ["msvcr110.dll", "msvcr110_clr0400.dll", "msvcr100.dll", "msvcrt.dll", "msvcr90.dll", "msvcr120.dll", "msvcr80.dll"]
6-
api_type: ["DLLExport"]
7-
topic_type: ["apiref"]
8-
f1_keywords: ["_ismbc"]
95
helpviewer_keywords: ["ismbc routines", "_ismbc routines"]
106
ms.assetid: b8995391-7857-4ac3-9a1e-de946eb4464d
117
---

docs/c-runtime-library/reference/and-eq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["and_eq", "std.and_eq", "std::and_eq"]
8+
f1_keywords: ["ISO646/and_eq", "and_eq", "std.and_eq", "std::and_eq"]
99
helpviewer_keywords: ["and_eq macro"]
1010
ms.assetid: 11091772-e359-4c2b-95c6-00841ac04354
1111
---

docs/c-runtime-library/reference/and.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["And", "std.and", "std::and"]
8+
f1_keywords: ["ISO646/and", "and", "std.and", "std::and"]
99
helpviewer_keywords: ["and macro"]
1010
ms.assetid: 2644ab57-8e1b-48f0-9021-cafe3e26bdc4
1111
---

docs/c-runtime-library/reference/bitand.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["std::bitand", "std.bitand", "bitand"]
8+
f1_keywords: ["std::bitand", "std.bitand", "ISO646/bitand", "bitand"]
99
helpviewer_keywords: ["bitand function"]
1010
ms.assetid: 279cf9b5-fac1-49de-b329-f1a31b3481fe
1111
---

docs/c-runtime-library/reference/bitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["bitor", "std.bitor", "std::bitor"]
8+
f1_keywords: ["ISO646/bitor", "bitor", "std.bitor", "std::bitor"]
99
helpviewer_keywords: ["bitor function"]
1010
ms.assetid: 3c0a3711-9c74-41f2-b400-2f7797da30d1
1111
---

docs/c-runtime-library/reference/compl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ api_name: ["compl"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
9-
f1_keywords: ["std::compl", "std.compl", "compl"]
9+
f1_keywords: ["std::compl", "std.compl", "ISO646/compl", "compl"]
1010
helpviewer_keywords: ["compl function"]
1111
ms.assetid: e03f6fb5-cb8b-4afa-99c0-905f4105fb34
1212
---

docs/c-runtime-library/reference/get-daylight.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ api_name: ["__daylight", "_get_daylight", "_o___daylight", "_o__get_daylight"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-time-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
9-
f1_keywords: ["get_daylight", "_get_daylight"]
9+
f1_keywords: ["TIME/_get_daylight", "_get_daylight", "get_daylight", "__daylight"]
1010
helpviewer_keywords: ["get_daylight function", "daylight saving time offset", "_get_daylight function"]
1111
ms.assetid: f85a6ba3-e187-4ca7-aed7-ffc694c8ac4c
1212
---

docs/c-runtime-library/reference/log1p-log1pf-log1pl2.md

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: "log1p, log1pf, log1pl2"
33
description: "API reference for log1p, log1pf, log1pl2; which compute the natural logarithm of 1 plus the specified value."
4-
ms.date: "9/1/2020"
4+
ms.date: "2/1/2023"
55
api_name: ["log1p", "log1pf", "log1pl", "_o_log1p", "_o_log1pf", "_o_log1pl"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll", "api-ms-win-crt-math-l1-1-0.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["log1p", "log1pf", "log1pl", "math/log1p", "math/log1pf", "math/log1pl"]
1010
helpviewer_keywords: ["log1p function", "log1pf function", "log1pl function"]
11-
ms.assetid: a40d965d-b4f6-42f4-ba27-2395546f7c12
1211
---
1312
# `log1p`, `log1pf`, `log1pl`
1413

@@ -17,25 +16,14 @@ Computes the natural logarithm of 1 plus the specified value.
1716
## Syntax
1817

1918
```C
20-
double log1p(
21-
double x
22-
);
23-
float log1pf(
24-
float x
25-
);
26-
long double log1pl(
27-
long double x
28-
);
19+
double log1p(double x);
20+
float log1pf(float x);
21+
long double log1pl(long double x);
2922

3023
#define log1p(X) // Requires C11 or higher
3124

32-
float log1p(
33-
float x
34-
); //C++ only
35-
36-
long double log1p(
37-
long double x
38-
); //C++ only
25+
float log1p(float x); //C++ only
26+
long double log1p(long double x); //C++ only
3927
```
4028
4129
### Parameters
@@ -68,18 +56,18 @@ The **`log1p`** functions may be more accurate than using `log(x + 1)` when *`x`
6856
6957
Because C++ allows overloading, you can call overloads of **`log1p`** that take and return **`float`** and **`long double`** types. In a C program, unless you're using the \<tgmath.h> macro to call this function, **`log1p`** always takes and returns a **`double`**.
7058
71-
If you use the \<tgmath.h> `log1p()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../tgmath.md) for details.
59+
If you use the `<tgmath.h>` `log1p()` macro, the type of the argument determines which version of the function is selected. See [Type-generic math](../tgmath.md) for details.
7260
73-
If *`x`* is a natural number, this function returns the logarithm of the factorial of (*`x`* - 1).
61+
Where *`x`* is a natural number, this function returns the base e logarithm of *`x`* + 1.
7462
7563
By default, this function's global state is scoped to the application. To change this behavior, see [Global state in the CRT](../global-state.md).
7664
7765
## Requirements
7866
7967
| Function | C header | C++ header |
8068
|---|---|---|
81-
| **`log1p`**, **`log1pf`**, **`log1pl`** | \<math.h> | \<cmath> |
82-
| **`log1p`** macro | \<tgmath.h> | |
69+
| **`log1p`**, **`log1pf`**, **`log1pl`** | `<math.h>` | `<cmath>` |
70+
| **`log1p`** macro | `<tgmath.h>` | |
8371
8472
For more compatibility information, see [Compatibility](../compatibility.md).
8573

docs/c-runtime-library/reference/not-eq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["not_eq", "std::not_eq", "std.not_eq"]
8+
f1_keywords: ["ISO646/not_eq", "not_eq", "std::not_eq", "std.not_eq"]
99
helpviewer_keywords: ["not_eq function"]
1010
ms.assetid: d87ad299-8b50-4393-a57f-06f70e1f23fb
1111
---

docs/c-runtime-library/reference/not.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["std::not", "std.not", "Not"]
8+
f1_keywords: ["std::not", "std.not", "ISO646/not", "not"]
99
helpviewer_keywords: ["not function"]
1010
ms.assetid: d2ddbd5c-33c0-4aff-8961-feac155b4ba1
1111
---

docs/c-runtime-library/reference/or.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: "11/04/2016"
55
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
66
api_type: ["DLLExport"]
77
topic_type: ["apiref"]
8-
f1_keywords: ["std::or", "std.or", "Or"]
8+
f1_keywords: ["std::or", "std.or", "ISO646/or", "or"]
99
helpviewer_keywords: ["or function"]
1010
ms.assetid: 6523b3ac-0a18-44ec-9e9a-b9bab8525ead
1111
---

docs/parallel/concrt/task-scheduler-concurrency-runtime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.assetid: 9aba278c-e0c9-4ede-b7c6-fedf7a365d90
77
---
88
# Task Scheduler (Concurrency Runtime)
99

10-
The topics in this part of the documentation describe the important features of the Concurrency Runtime Task Scheduler. The Task Scheduler is useful when you want fine-tune the performance of your existing code that uses the Concurrency Runtime.
10+
The topics in this part of the documentation describe the important features of the Concurrency Runtime Task Scheduler. The Task Scheduler is useful when you want to fine-tune the performance of your existing code that uses the Concurrency Runtime.
1111

1212
> [!IMPORTANT]
1313
> The Task Scheduler is not available from a Universal Windows Platform (UWP) app. For more information, see [Creating Asynchronous Operations in C++ for UWP Apps](../../parallel/concrt/creating-asynchronous-operations-in-cpp-for-windows-store-apps.md).

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy