Use common pattern for function-like macro (#4625)

This commit is contained in:
Alexander Shabalin
2021-01-12 12:47:00 +03:00
committed by Nikolay Krasko
parent 32e3deace1
commit adf80418af
4 changed files with 36 additions and 22 deletions
@@ -177,7 +177,7 @@ void BackRefFromAssociatedObject::releaseRef() {
}
void BackRefFromAssociatedObject::detach() {
RuntimeAssert(atomicGet(&refCount) == 0, "unexpected refCount")
RuntimeAssert(atomicGet(&refCount) == 0, "unexpected refCount");
obj_ = nullptr; // Handled in addRef/tryAddRef/releaseRef/ref.
}