Split up C-comment in a multi-line macro that was confusing clang-format

* Every time clang-format applied to this file, it would add a new \
  on the end of the first line of the comment. Splitting it into two
  single-line C comments works around this behaviour.
This commit is contained in:
baldurk
2017-07-21 17:29:09 +01:00
parent 5b3ffcd5b1
commit 1ff3da4a82
+20 -20
View File
@@ -3009,26 +3009,26 @@ string ToStrHelper<false, VkPresentModeKHR>::Get(const VkPresentModeKHR &el)
}
// we know the object will be a non-dispatchable object type
#define SerialiseObjectInternal(type, name, obj, opt) \
{ \
VulkanResourceManager *rm = (VulkanResourceManager *)GetUserData(); \
ResourceId id; \
if(m_Mode >= WRITING) \
id = GetResID(obj); \
Serialise(name, id); \
if(m_Mode < WRITING) \
{ \
obj = VK_NULL_HANDLE; \
if(id != ResourceId()) \
{ \
if(rm->HasLiveResource(id)) \
obj = Unwrap(rm->GetLiveHandle<type>(id)); \
else if(!opt) \
/* It can be OK for a resource to have no live equivalent if the \
capture decided its not needed, which some APIs do fairly often. */ \
RDCWARN("Capture may be missing reference to " #type " resource."); \
} \
} \
#define SerialiseObjectInternal(type, name, obj, opt) \
{ \
VulkanResourceManager *rm = (VulkanResourceManager *)GetUserData(); \
ResourceId id; \
if(m_Mode >= WRITING) \
id = GetResID(obj); \
Serialise(name, id); \
if(m_Mode < WRITING) \
{ \
obj = VK_NULL_HANDLE; \
if(id != ResourceId()) \
{ \
if(rm->HasLiveResource(id)) \
obj = Unwrap(rm->GetLiveHandle<type>(id)); \
else if(!opt) \
/* It can be OK for a resource to have no live equivalent if the */ \
/* capture decided its not needed, which some APIs do fairly often. */ \
RDCWARN("Capture may be missing reference to " #type " resource."); \
} \
} \
}
#define SerialiseObject(type, name, obj) SerialiseObjectInternal(type, name, obj, false)