From bac4ac1f49921c083246dc37d187feed5737a74a Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Sat, 19 Jul 2025 22:40:09 +0800 Subject: [PATCH 1/2] Merge duplicate sentences about `_asm` synonym in `__asm` reference --- docs/assembler/inline/asm.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/assembler/inline/asm.md b/docs/assembler/inline/asm.md index 0ad5df365a..e421e86b5b 100644 --- a/docs/assembler/inline/asm.md +++ b/docs/assembler/inline/asm.md @@ -28,7 +28,7 @@ The **`__asm`** keyword invokes the inline assembler and can appear wherever a C ## Remarks -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`**. +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. Since the **`__asm`** keyword is a statement separator, you can put assembly instructions on the same line. @@ -42,8 +42,6 @@ didn't cause native code to be generated when compiled with **/clr**; the compil `__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). -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. - ## Example The following code fragment is a simple **`__asm`** block enclosed in braces: From e661a57ec9626ffb47df49a79168c4c0072d8ba0 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Sat, 19 Jul 2025 22:41:19 +0800 Subject: [PATCH 2/2] Update metadata in `__asm` reference --- docs/assembler/inline/asm.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/assembler/inline/asm.md b/docs/assembler/inline/asm.md index e421e86b5b..a14c085469 100644 --- a/docs/assembler/inline/asm.md +++ b/docs/assembler/inline/asm.md @@ -1,11 +1,10 @@ --- -description: "Learn more about: `__asm`" title: "__asm" -ms.date: "10/09/2018" +description: "Learn more about: `__asm`" +ms.date: 10/09/2018 +ms.topic: reference f1_keywords: ["__asm", "_asm", "__asm_cpp"] helpviewer_keywords: ["__asm keyword [C++], vs. asm blocks", "__asm keyword [C++]"] -ms.assetid: 77ff3bc9-a492-4b5e-85e1-fa4e414e79cd -ms.topic: reference --- # `__asm`