summaryrefslogtreecommitdiff
path: root/src/renderer/backends/vulkan_helpers.h
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-05-17 13:50:33 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-05-17 13:50:33 +1000
commit519329e98467d0cdcc39720cef0f69c9936b6d55 (patch)
tree2837063ce51984dee00c6e2194e6f58ba189e8d8 /src/renderer/backends/vulkan_helpers.h
parent9df999df385b74be5096218d206dd39988784237 (diff)
pool tests and try get macro working
Diffstat (limited to 'src/renderer/backends/vulkan_helpers.h')
-rw-r--r--src/renderer/backends/vulkan_helpers.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/renderer/backends/vulkan_helpers.h b/src/renderer/backends/vulkan_helpers.h
index db9b5a4..23666c6 100644
--- a/src/renderer/backends/vulkan_helpers.h
+++ b/src/renderer/backends/vulkan_helpers.h
@@ -20,12 +20,12 @@ static void plat_get_required_extension_names(cstr_darray* extensions) {
}
// TODO(omni): port to using internal assert functions
-#define VK_CHECK(vulkan_expr) \
- do { \
- VkResult res = vulkan_expr; \
- if (res != VK_SUCCESS) { \
+#define VK_CHECK(vulkan_expr) \
+ do { \
+ VkResult res = vulkan_expr; \
+ if (res != VK_SUCCESS) { \
ERROR_EXIT("Vulkan error: %u (%s:%d)", res, __FILE__, __LINE__); \
- } \
+ } \
} while (0)
// TODO: typedef struct vk_debugger {} vk_debugger;