Skip to content

Commit

Permalink
CXX: Add #undef NDEBUG to all vulkan includes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamievlin committed Feb 15, 2024
1 parent 1edc874 commit 37dcc7d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/vk.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

#if defined(HAVE_VULKAN)

// We undefined NDEBUG for common.h, but some files
// do not use common.h, causing includes
// to be a mix of NDEBUG-ed vulkan header and those without
#undef NDEBUG
#define VK_ENABLE_BETA_EXTENSIONS

#if defined(_WIN32)
Expand Down
6 changes: 5 additions & 1 deletion include/vkutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#if defined(HAVE_VULKAN)

// We undefined NDEBUG for common.h, but some files
// do not use common.h, causing includes
// to be a mix of NDEBUG-ed vulkan header and those without
#undef NDEBUG
#include <vulkan/vulkan.hpp>

namespace camp
Expand All @@ -15,4 +19,4 @@ void checkVkResult(vk::Result const& result);

}
}
#endif
#endif

0 comments on commit 37dcc7d

Please sign in to comment.