[Vulkan] Enforce semicolons on VK_SAFE_DESTROY

This commit is contained in:
DrChat 2018-02-09 18:52:21 -06:00
parent 190108dab6
commit 45ba1d0bf3
1 changed files with 9 additions and 4 deletions

View File

@ -26,10 +26,15 @@ namespace ui {
namespace vulkan { namespace vulkan {
#define VK_SAFE_DESTROY(fn, dev, obj, alloc) \ #define VK_SAFE_DESTROY(fn, dev, obj, alloc) \
\
do { \
if (obj) { \ if (obj) { \
fn(dev, obj, alloc); \ fn(dev, obj, alloc); \
obj = nullptr; \ obj = nullptr; \
} } \
\
} \
while (0)
class Fence { class Fence {
public: public: