From 54770d5fb48041c0001446b453750b401410471d Mon Sep 17 00:00:00 2001 From: hannah Date: Sun, 6 Sep 2026 14:39:08 +0200 Subject: [PATCH] Escape underscore characters in __INTELLISENSE__ explanation --- en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc b/en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc index fb30a6cd..87176d09 100644 --- a/en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc +++ b/en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc @@ -40,7 +40,7 @@ import vulkan_hpp; class HelloTriangleApplication { ---- -The `#if defined(__INTELLISENSE__) || !defined(USE_CPP20_MODULES)` block picks +The `#if defined(\\__INTELLISENSE__) || !defined(USE_CPP20_MODULES)` block picks between two ways of pulling in the Vulkan-Hpp API, both of which provide the same functions, structures, and enumerations. By default we include the traditional `` header. If you enable C{pp}20 modules @@ -48,7 +48,7 @@ traditional `` header. If you enable C{pp}20 modules makes the code `import vulkan_hpp;` instead. Either way, Visual Studio and VS Code's IntelliSense engine doesn't yet understand `import` for modules and will flag it as an error even though the code compiles fine, so we fall back -to the header whenever `__INTELLISENSE__` is defined (which IntelliSense +to the header whenever `\\__INTELLISENSE__` is defined (which IntelliSense itself defines while analyzing the code) or when modules are turned off entirely.