The compiler doesn't like usage of LockMark when you have arrow or dot operators, because of how it expands the macro:
I think maybe it needs a couple of changes:
Unrelated, but it would be nice if the various Lock macros were prefixed with "Tracy" (i.e. TracyLockableBaseTracySharedLockableBase, TracyLockMark and so forth).
LockMark should probably accept an additional argument like the various ZoneNamed/ZoneTransient macros do. That way, doing LockMark(TakingSomeLock, someStructure->m_mutex) would work.
The compiler doesn't like usage of LockMark when you have arrow or dot operators, because of how it expands the macro:
I think maybe it needs a couple of changes:
TracyLockableBase
TracySharedLockableBase
,TracyLockMark
and so forth).LockMark
should probably accept an additional argument like the variousZoneNamed
/ZoneTransient
macros do. That way, doingLockMark(TakingSomeLock, someStructure->m_mutex)
would work.Maybe something like this?