Skip to content

Commit 73dc2d2

Browse files
Merge pull request #6054 from MicrosoftDocs/main
Auto Publish – main to live - 2025-08-22 17:30 UTC
2 parents ff749ba + 5874ccd commit 73dc2d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+333
-232
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
---
2-
description: "Learn more about: EVEN and ALIGN Directives"
32
title: "EVEN and ALIGN Directives"
4-
ms.date: "08/30/2018"
3+
description: "Learn more about: EVEN and ALIGN Directives"
4+
ms.date: 08/30/2018
55
helpviewer_keywords: ["EVEN directive", "directives, MASM", "MASM (Microsoft Macro Assembler), directives", "NOP (no operation instruction)", "ALIGN directive"]
6-
ms.assetid: 7357ab2d-4a5c-43ca-accb-a5f21cdfcde5
76
---
8-
# EVEN and ALIGN Directives
7+
# `EVEN` and `ALIGN` Directives
98

109
**Microsoft Specific**
1110

12-
Although the inline assembler doesn't support most MASM directives, it does support `EVEN` and **ALIGN**. These directives put **NOP** (no operation) instructions in the assembly code as needed to align labels to specific boundaries. This makes instruction-fetch operations more efficient for some processors.
11+
Although the inline assembler doesn't support most MASM directives, it does support [`EVEN`](../masm/even.md) and [`ALIGN`](../masm/align-masm.md). These directives put `NOP` (no operation) instructions in the assembly code as needed to align labels to specific boundaries. This makes instruction-fetch operations more efficient for some processors.
1312

1413
**END Microsoft Specific**
1514

1615
## See also
1716

18-
[Using Assembly Language in __asm Blocks](../../assembler/inline/using-assembly-language-in-asm-blocks.md)<br/>
17+
[Using Assembly Language in `__asm` Blocks](using-assembly-language-in-asm-blocks.md)

docs/assembler/masm/even.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
---
2-
description: "Learn more about: EVEN"
32
title: "EVEN"
4-
ms.date: "12/17/2019"
3+
description: "Learn more about: EVEN"
4+
ms.date: 12/17/2019
55
f1_keywords: ["EVEN"]
66
helpviewer_keywords: ["EVEN directive"]
7-
ms.assetid: 68938ba4-8cb9-44d4-914e-9f9fee6bcbf4
87
---
9-
# EVEN
8+
# `EVEN`
109

1110
Aligns the next variable or instruction on an even byte.
1211

@@ -16,5 +15,6 @@ Aligns the next variable or instruction on an even byte.
1615
1716
## See also
1817

18+
[`ALIGN`](align-masm.md)\
1919
[Directives reference](directives-reference.md)\
2020
[MASM BNF Grammar](masm-bnf-grammar.md)

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
description: "Learn more about: Compiler Error C2201"
32
title: "Compiler Error C2201"
3+
description: "Learn more about: Compiler Error C2201"
44
ms.date: 05/03/2021
55
f1_keywords: ["C2201"]
66
helpviewer_keywords: ["C2201"]
@@ -9,11 +9,13 @@ helpviewer_keywords: ["C2201"]
99

1010
> '*identifier*' : must have external linkage in order to be exported/imported
1111
12+
## Remarks
13+
1214
The exported identifier is **`static`**.
1315

1416
## Example
1517

16-
The following sample generates C2286, and shows how to fix it:
18+
The following example generates C2286, and shows how to fix it:
1719

1820
```cpp
1921
// C2201.cpp

docs/error-messages/compiler-errors-1/compiler-error-c2203.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 C2203"
32
title: "Compiler Error C2203"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2203"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2203"]
66
helpviewer_keywords: ["C2203"]
7-
ms.assetid: 5497df43-86f6-43d5-b6cb-723c4c589b10
87
---
98
# Compiler Error C2203
109

11-
delete operator cannot specify bounds for an array
10+
> delete operator cannot specify bounds for an array
11+
12+
## Remarks
1213

1314
With the **/Za** (ANSI) option, the **`delete`** operator can delete an entire array but not parts or specific members of the array.
1415

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

1720
```cpp
1821
// C2203.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 C2204"
32
title: "Compiler Error C2204"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2204"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2204"]
66
helpviewer_keywords: ["C2204"]
7-
ms.assetid: bbe506d4-7863-44af-8709-161881c4b4ba
87
---
98
# Compiler Error C2204
109

11-
'type' : type definition found within parentheses
10+
> 'type' : type definition found within parentheses
11+
12+
## Remarks
1213

1314
The type is defined as an operand or in prototype scope.
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 C2205"
32
title: "Compiler Error C2205"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2205"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2205"]
66
helpviewer_keywords: ["C2205"]
7-
ms.assetid: bfc19840-4a48-4da5-8e69-7069989f1d2c
87
---
98
# Compiler Error C2205
109

11-
'identifier' : cannot initialize extern variables with block scope
10+
> 'identifier' : cannot initialize extern variables with block scope
11+
12+
## Remarks
1213

1314
An **`extern`** variable cannot be initialized in a function.

docs/error-messages/compiler-errors-1/compiler-error-c2206.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 C2206"
32
title: "Compiler Error C2206"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2206"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2206"]
66
helpviewer_keywords: ["C2206"]
7-
ms.assetid: d7fba68b-aa28-4885-a9a0-27107358f066
87
---
98
# Compiler Error C2206
109

11-
'function' : typedef cannot be used for function definition
10+
> 'function' : typedef cannot be used for function definition
11+
12+
## Remarks
1213

1314
A **`typedef`** is used to define a function type.
1415

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

1720
```cpp
1821
// C2206.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 C2207"
32
title: "Compiler Error C2207"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2207"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2207"]
66
helpviewer_keywords: ["C2207"]
7-
ms.assetid: d7d7b537-68f1-420a-9835-b5b6f2cb5cfd
87
---
98
# Compiler Error C2207
109

11-
'member': a member of a class template cannot acquire a function type
10+
> 'member': a member of a class template cannot acquire a function type
11+
12+
## Remarks
1213

1314
The `member` of the class template was previously parsed as a non-static data member. It cannot be redefined as a member function.

docs/error-messages/compiler-errors-1/compiler-error-c2208.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 C2208"
32
title: "Compiler Error C2208"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2208"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2208"]
66
helpviewer_keywords: ["C2208"]
7-
ms.assetid: 9ae704bc-bf70-45f1-8e47-0470f21edd4e
87
---
98
# Compiler Error C2208
109

11-
'type' : no members defined using this type
10+
> 'type' : no members defined using this type
11+
12+
## Remarks
1213

1314
An identifier resolving to a type name is in an aggregate declaration, but the compiler cannot declare a member.
1415

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

1720
```cpp
1821
// C2208.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 C2212"
32
title: "Compiler Error C2212"
4-
ms.date: "11/04/2016"
3+
description: "Learn more about: Compiler Error C2212"
4+
ms.date: 11/04/2016
55
f1_keywords: ["C2212"]
66
helpviewer_keywords: ["C2212"]
7-
ms.assetid: 3fdab304-272c-4d07-bfd4-fad75170e536
87
---
98
# Compiler Error C2212
109

11-
'identifier' : __based not available for pointers to functions
10+
> 'identifier' : __based not available for pointers to functions
11+
12+
## Remarks
1213

1314
Pointers to functions cannot be declared **`__based`**. If you need code-based data, use the **`__declspec`** keyword or the `data_seg` pragma.

0 commit comments

Comments
 (0)