Skip to content

Commit ee4f1c1

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C2161, C2180]
1 parent 787e223 commit ee4f1c1

17 files changed

+44
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: d6798821-13bb-4e60-924f-85f7bf955387
1010

1111
> '##' cannot occur at the end of a macro definition
1212
13+
## Remarks
14+
1315
A macro definition ended with a token-pasting operator (##).
1416

17+
## Example
18+
1519
The following sample generates C2161:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ helpviewer_keywords: ["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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 6428d1e9-1ba1-46fc-bbf6-91d6fef2734c
1010

1111
> 'function' : not available as an intrinsic function
1212
13+
## Remarks
14+
1315
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 55df5024-68a8-45a8-ae6c-e6dba35318a2
1010

1111
> 'function' : intrinsic function not declared
1212
13+
## Remarks
14+
1315
An `intrinsic` pragma uses an undeclared function (only occurs with **/Oi**). Or, one of the compiler intrinsics was used without including its header file.
1416

17+
## Example
18+
1519
The following sample generates C2164:
1620

1721
```c

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: b108313b-b8cb-4dce-b2ec-f2b31c9cdc87
1010

1111
> 'keyword' : cannot modify pointers to data
1212
13+
## Remarks
14+
1315
The **`__stdcall`**, **`__cdecl`**, or **`__fastcall`** keyword attempts to modify a pointer to data.
1416

17+
## Example
18+
1519
The following sample generates C2165:
1620

1721
```cpp

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 3de3de96-12cd-47df-b24e-34cc9747ef83
1010

1111
> 'function' : too many actual parameters for intrinsic function
1212
13+
## Remarks
14+
1315
A reference to an `intrinsic` function has too many parameters.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 625e7dc3-ca74-4980-8268-8d5c0245e376
1010

1111
> 'function' : too few actual parameters for intrinsic function
1212
13+
## Remarks
14+
1315
A reference to an `intrinsic` function has too few parameters.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 97f700bd-1044-46f5-b276-3d7570ee7708
1010

1111
> 'function' : intrinsic function, cannot be defined
1212
13+
## Remarks
14+
1315
A function definition appears for a function already declared `intrinsic`.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: a80343b5-ab3f-4413-b6f1-3ce9d7e519e5
1010

1111
> 'operator' : illegal on operands of type 'type'
1212
13+
## Remarks
14+
1315
A unary operator is used with an invalid operand type.
1416

1517
## Examples

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 31183ea7-858d-4273-932a-d865af7059b1
1010

1111
> 'function' : actual parameter is not a pointer : parameter number
1212
13+
## Remarks
14+
1315
Parameter `number` is not a pointer. The function expects a pointer.

0 commit comments

Comments
 (0)