mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-01 19:02:19 +00:00
have zig allocate all refcounts
This commit is contained in:
parent
805e4ef5d3
commit
577282ced3
6 changed files with 32 additions and 88 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue