Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions en/03_Drawing_a_triangle/00_Setup/00_Base_code.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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 `<vulkan/vulkan_raii.hpp>` header. If you enable C{pp}20 modules
(`-DENABLE_CPP20_MODULE=ON`), the `USE_CPP20_MODULES` define set by CMake
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.

Expand Down
Loading