Tweaks related to issue #311

This commit is contained in:
rfm 2024-07-15 17:19:16 +01:00
parent b91ff38636
commit 4629a4e1f6
5 changed files with 30 additions and 21 deletions

View file

@ -77,7 +77,8 @@ typedef GSIMapNode_t *GSIMapNode;
#define GSI_MAP_TABLE_S instanceSize
#define IS_WEAK(M) \
memoryType(M->cb.pf.options, NSPointerFunctionsZeroingWeakMemory) || memoryType(M->cb.pf.options, NSPointerFunctionsWeakMemory)
(memoryType(M->cb.pf.options, NSPointerFunctionsZeroingWeakMemory) \
|| memoryType(M->cb.pf.options, NSPointerFunctionsWeakMemory))
#define GSI_MAP_HASH(M, X)\
(M->legacy ? M->cb.old.hash(M, X.ptr) \
: pointerFunctionsHash(&M->cb.pf, X.ptr))