Skip to content

Commit f9a4131

Browse files
Merge pull request #5549 from Rageking8/structure-error-references-in-range-c2161-c2180
Structure error references in range [C2161, C2180]
2 parents f745c17 + dc59738 commit f9a4131

18 files changed

+105
-78
lines changed

docs/error-messages/compiler-errors-1/compiler-error-c2161.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2161"
32
title: "Compiler Error C2161"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2161"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2161"]
66
helpviewer_keywords: ["C2161"]
7-
ms.assetid: d6798821-13bb-4e60-924f-85f7bf955387
87
---
98
# Compiler Error C2161
109

11-
'##' cannot occur at the end of a macro definition
10+
> '##' cannot occur at the end of a macro definition
11+
12+
## Remarks
1213

1314
A macro definition ended with a token-pasting operator (##).
1415

15-
The following sample generates C2161:
16+
## Example
17+
18+
The following example generates C2161:
1619

1720
```cpp
1821
// C2161.cpp

docs/error-messages/compiler-errors-1/compiler-error-c2162.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
---
22
title: "Compiler Error C2162"
33
description: "Learn more about: Compiler Error C2162"
4-
ms.date: "03/30/2025"
4+
ms.date: 03/30/2025
55
f1_keywords: ["C2162"]
66
helpviewer_keywords: ["C2162"]
77
---
88
# Compiler Error C2162
99

1010
> expected macro formal parameter
1111
12+
## Remarks
13+
1214
The token following a [stringizing operator (#)](../../preprocessor/stringizing-operator-hash.md) or a [charizing operator (#@)](../../preprocessor/charizing-operator-hash-at.md) is not a formal parameter.
1315

1416
## Example
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2163"
32
title: "Compiler Error C2163"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2163"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2163"]
66
helpviewer_keywords: ["C2163"]
7-
ms.assetid: 6428d1e9-1ba1-46fc-bbf6-91d6fef2734c
87
---
98
# Compiler Error C2163
109

11-
'function' : not available as an intrinsic function
10+
> 'function' : not available as an intrinsic function
11+
12+
## Remarks
1213

1314
An `intrinsic` or `function` pragma lists a function not available in intrinsic form. For example, certain intrinsics are not available when compiling a program that uses /clr programming.

docs/error-messages/compiler-errors-1/compiler-error-c2164.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2164"
32
title: "Compiler Error C2164"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2164"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2164"]
66
helpviewer_keywords: ["C2164"]
7-
ms.assetid: 55df5024-68a8-45a8-ae6c-e6dba35318a2
87
---
98
# Compiler Error C2164
109

11-
'function' : intrinsic function not declared
10+
> 'function' : intrinsic function not declared
11+
12+
## Remarks
1213

1314
An `intrinsic` pragma uses an undeclared function (only occurs with **/Oi**). Or, one of the compiler intrinsics was used without including its header file.
1415

15-
The following sample generates C2164:
16+
## Example
17+
18+
The following example generates C2164:
1619

1720
```c
1821
// C2164.c

docs/error-messages/compiler-errors-1/compiler-error-c2165.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2165"
32
title: "Compiler Error C2165"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2165"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2165"]
66
helpviewer_keywords: ["C2165"]
7-
ms.assetid: b108313b-b8cb-4dce-b2ec-f2b31c9cdc87
87
---
98
# Compiler Error C2165
109

11-
'keyword' : cannot modify pointers to data
10+
> 'keyword' : cannot modify pointers to data
11+
12+
## Remarks
1213

1314
The **`__stdcall`**, **`__cdecl`**, or **`__fastcall`** keyword attempts to modify a pointer to data.
1415

15-
The following sample generates C2165:
16+
## Example
17+
18+
The following example generates C2165:
1619

1720
```cpp
1821
// C2165.cpp
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2167"
32
title: "Compiler Error C2167"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2167"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2167"]
66
helpviewer_keywords: ["C2167"]
7-
ms.assetid: 3de3de96-12cd-47df-b24e-34cc9747ef83
87
---
98
# Compiler Error C2167
109

11-
'function' : too many actual parameters for intrinsic function
10+
> 'function' : too many actual parameters for intrinsic function
11+
12+
## Remarks
1213

1314
A reference to an `intrinsic` function has too many parameters.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2168"
32
title: "Compiler Error C2168"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2168"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2168"]
66
helpviewer_keywords: ["C2168"]
7-
ms.assetid: 625e7dc3-ca74-4980-8268-8d5c0245e376
87
---
98
# Compiler Error C2168
109

11-
'function' : too few actual parameters for intrinsic function
10+
> 'function' : too few actual parameters for intrinsic function
11+
12+
## Remarks
1213

1314
A reference to an `intrinsic` function has too few parameters.
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
2-
description: "Learn more about: Compiler Error C2169"
32
title: "Compiler Error C2169"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2169"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2169"]
66
helpviewer_keywords: ["C2169"]
7-
ms.assetid: 97f700bd-1044-46f5-b276-3d7570ee7708
87
---
98
# Compiler Error C2169
109

11-
'function' : intrinsic function, cannot be defined
10+
> 'function' : intrinsic function, cannot be defined
11+
12+
## Remarks
1213

1314
A function definition appears for a function already declared `intrinsic`.

docs/error-messages/compiler-errors-1/compiler-error-c2170.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
description: "Learn more about: Compiler Error C2170"
32
title: "Compiler Error C2170"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2170"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2170"]
66
helpviewer_keywords: ["C2170"]
7-
ms.assetid: d5c663f0-2459-4e11-a8bf-a52b62f3c71d
87
---
98
# Compiler Error C2170
109

11-
'identifier' : not declared as a function, cannot be intrinsic
10+
> 'identifier' : not declared as a function, cannot be intrinsic
1211
1312
### To fix by checking the following possible causes
1413

docs/error-messages/compiler-errors-1/compiler-error-c2171.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
---
2-
description: "Learn more about: Compiler Error C2171"
32
title: "Compiler Error C2171"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2171"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2171"]
66
helpviewer_keywords: ["C2171"]
7-
ms.assetid: a80343b5-ab3f-4413-b6f1-3ce9d7e519e5
87
---
98
# Compiler Error C2171
109

11-
'operator' : illegal on operands of type 'type'
10+
> 'operator' : illegal on operands of type 'type'
11+
12+
## Remarks
1213

1314
A unary operator is used with an invalid operand type.
1415

1516
## Examples
1617

17-
The following sample generates C2171.
18+
The following example generates C2171.
1819

1920
```cpp
2021
// C2171.cpp
@@ -28,7 +29,7 @@ int main() {
2829
}
2930
```
3031

31-
The following sample generates C2171.
32+
The following example generates C2171.
3233

3334
```cpp
3435
// C2171_b.cpp

0 commit comments

Comments
 (0)