From 45ba1d0bf3abc31d97e12c02808fef5ef09e732e Mon Sep 17 00:00:00 2001 From: DrChat Date: Fri, 9 Feb 2018 18:52:21 -0600 Subject: [PATCH] [Vulkan] Enforce semicolons on VK_SAFE_DESTROY --- src/xenia/ui/vulkan/vulkan_util.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/xenia/ui/vulkan/vulkan_util.h b/src/xenia/ui/vulkan/vulkan_util.h index 62419429e..195dce761 100644 --- a/src/xenia/ui/vulkan/vulkan_util.h +++ b/src/xenia/ui/vulkan/vulkan_util.h @@ -26,10 +26,15 @@ namespace ui { namespace vulkan { #define VK_SAFE_DESTROY(fn, dev, obj, alloc) \ - if (obj) { \ - fn(dev, obj, alloc); \ - obj = nullptr; \ - } + \ +do { \ + if (obj) { \ + fn(dev, obj, alloc); \ + obj = nullptr; \ + } \ + \ +} \ + while (0) class Fence { public: