have zig allocate all refcounts

This commit is contained in:
Brendan Hansknecht 2022-04-01 14:06:28 -07:00
parent 805e4ef5d3
commit 577282ced3
6 changed files with 32 additions and 88 deletions

View file

@ -208,6 +208,13 @@ inline fn decref_ptr_to_refcount(
}
}
pub fn allocateWithRefcountC(
data_bytes: usize,
element_alignment: u32,
) callconv(.C) [*]u8 {
return allocateWithRefcount(data_bytes, element_alignment);
}
pub fn allocateWithRefcount(
data_bytes: usize,
element_alignment: u32,