implement expect struct reporting

This commit is contained in:
Folkert 2022-07-28 16:47:02 +02:00
parent dbbbc32583
commit 1bfac155ca
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
3 changed files with 79 additions and 9 deletions

View file

@ -2608,10 +2608,10 @@ test "getScalarUnsafe" {
}
pub fn strCloneTo(
string: RocStr,
ptr: [*]u8,
offset: usize,
extra_offset: usize,
string: RocStr,
) callconv(.C) usize {
const WIDTH: usize = @sizeOf(RocStr);
if (string.isSmallStr()) {