Skip to content

Commit 71aa7b2

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C2401, C2430]
1 parent 5073e76 commit 71aa7b2

27 files changed

+66
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 4c237b34-f771-4106-93e2-82dae337f1e2
1010

1111
> 'identifier' : register must be base in 'context'
1212
13+
## Remarks
14+
1315
The register used in an indirect memory operand must be a base register in this context.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 23fa63e1-ea9e-482f-be2e-a205c548ba69
1010

1111
> 'identifier' : register must be index in 'context'
1212
13+
## Remarks
14+
1315
The register used in an indirect memory operand must be an index register in this context.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: add1f0ba-96b6-4df3-b53f-de1433d80c0c
1010

1111
> 'identifier' : register must be base/index in 'context'
1212
13+
## Remarks
14+
1315
The register used in an indirect memory operand must be a base or index register in this context.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 51794d2f-404b-4d89-b3ea-fc5faa9c197d
1010

1111
> 'identifier' : illegal register in 'context'
1212
13+
## Remarks
14+
1315
This register is invalid in this context.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 14f6726d-e04b-4cce-8a85-4553fc38fcf7
1010

1111
> illegal short forward reference with offset
1212
13+
## Remarks
14+
1315
Short forward references must refer to a label only. An additional offset cannot be used.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 9d3fbc4c-40bb-42c7-bfd7-7656c40e2065
1010

1111
> 'identifier' : name undefined in 'context'
1212
13+
## Remarks
14+
1315
An undefined identifier is used with the `SIZE`, `LENGTH`, or member-selection (.) operator.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: faf38041-cf0f-4624-b6f8-30ce0e1efc1e
1010

1111
> illegal 'float' register in 'context'
1212
13+
## Remarks
14+
1315
An `NDP` register was specified in an invalid context.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 3dc4881a-3c33-4c4e-b18e-a1f0e21ea931
1010

1111
> illegal type on PTR operator in 'context'
1212
13+
## Remarks
14+
1315
The first parameter of the `PTR` operator is not a legal type specification.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 5d4aa952-0752-4412-b5c2-050dde0636f4
1010

1111
> illegal type used as operator in 'context'
1212
13+
## Remarks
14+
1315
The type is not legal as an operator in this context.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: b69b2de1-56f3-4ebc-8913-04ac57ffe8a1
1010

1111
> 'identifier' : ambiguous member name in 'context'
1212
13+
## Remarks
14+
1315
The identifier is a member of more than one structure or union in this context.
1416

1517
Use a structure or union specifier on the operand that caused the error. A structure or union specifier is an identifier of type **`struct`** or **`union`** (a **`typedef`** name or a variable of the same type as the structure or union being referenced). The specifier must be the left operand of the first member-selection operator (.) to use the operand.

0 commit comments

Comments
 (0)