Skip to content

Commit 53eea62

Browse files
authored
Merge pull request MicrosoftDocs#5560 from Rageking8/merge-duplicate-sentences-about-asm-synonym-in-asm-reference
Merge duplicate sentences about `_asm` synonym in `__asm` reference
2 parents e0a4d8e + e661a57 commit 53eea62

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

docs/assembler/inline/asm.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
description: "Learn more about: `__asm`"
32
title: "__asm"
4-
ms.date: "10/09/2018"
3+
description: "Learn more about: `__asm`"
4+
ms.date: 10/09/2018
5+
ms.topic: reference
56
f1_keywords: ["__asm", "_asm", "__asm_cpp"]
67
helpviewer_keywords: ["__asm keyword [C++], vs. asm blocks", "__asm keyword [C++]"]
7-
ms.assetid: 77ff3bc9-a492-4b5e-85e1-fa4e414e79cd
8-
ms.topic: reference
98
---
109
# `__asm`
1110

@@ -28,7 +27,7 @@ The **`__asm`** keyword invokes the inline assembler and can appear wherever a C
2827

2928
## Remarks
3029

31-
If used without braces, the **`__asm`** keyword means that the rest of the line is an assembly-language statement. If used with braces, it means that each line between the braces is an assembly-language statement. For compatibility with previous versions, **`_asm`** is a synonym for **`__asm`**.
30+
If used without braces, the **`__asm`** keyword means that the rest of the line is an assembly-language statement. If used with braces, it means that each line between the braces is an assembly-language statement. For compatibility with previous versions, **`_asm`** is a synonym for **`__asm`** unless compiler option [`/Za` (Disable language extensions)](../../build/reference/za-ze-disable-language-extensions.md) is specified.
3231

3332
Since the **`__asm`** keyword is a statement separator, you can put assembly instructions on the same line.
3433

@@ -42,8 +41,6 @@ didn't cause native code to be generated when compiled with **/clr**; the compil
4241

4342
`__asm int 3` now results in native code generation for the function. If you want a function to cause a break point in your code and if you want that function compiled to MSIL, use [__debugbreak](../../intrinsics/debugbreak.md).
4443

45-
For compatibility with previous versions, **`_asm`** is a synonym for **`__asm`** unless compiler option [/Za \(Disable language extensions)](../../build/reference/za-ze-disable-language-extensions.md) is specified.
46-
4744
## Example
4845

4946
The following code fragment is a simple **`__asm`** block enclosed in braces:

0 commit comments

Comments
 (0)