Files
swift-mirror/test/Runtime/Inputs/refcount_hooks.h
T
Mike Ash 3fb5d9c0a6 [Runtime] Fix the swift_retain hook when ObjC interop is disabled.
Mask the non-native bridgeobject bits rather than all spare bits. This prevents us from trying to retain pointers that aren't valid native object pointers.
2026-05-15 17:31:07 -04:00

8 lines
230 B
C

#include <stddef.h>
typedef void *(*AllocObjectFn)(const void *metadata,
size_t requiredSize,
size_t requiredAlignmentMask);
extern AllocObjectFn _swift_allocObject;