[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 {
#define VK_SAFE_DESTROY(fn, dev, obj, alloc) \
\
do { \
if (obj) { \
fn(dev, obj, alloc); \
obj = nullptr; \
}
} \
\
} \
while (0)
class Fence {
public: