mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
make Dict.empty C ABI safe
This commit is contained in:
parent
e07057388b
commit
e99237e302
1 changed files with 2 additions and 2 deletions
|
@ -386,8 +386,8 @@ pub const RocDict = extern struct {
|
|||
};
|
||||
|
||||
// Dict.empty
|
||||
pub fn dictEmpty() callconv(.C) RocDict {
|
||||
return RocDict.empty();
|
||||
pub fn dictEmpty(dict: *RocDict) callconv(.C) void {
|
||||
dict.* = RocDict.empty();
|
||||
}
|
||||
|
||||
pub fn slotSize(key_size: usize, value_size: usize) usize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue