Starts memory allocation for our collection of failures for the expect keyword

+ BLOCKED: @lucas how do we initialize an empty slice in Zig?
This commit is contained in:
Chelsea Troy 2021-12-12 19:02:18 -06:00
parent ae755d81fa
commit b96ebe0457
2 changed files with 50 additions and 1 deletions

View file

@ -141,12 +141,13 @@ comptime {
}
// Utils
comptime {
exportUtilsFn(utils.test_panic, "test_panic");
exportUtilsFn(utils.increfC, "incref");
exportUtilsFn(utils.decrefC, "decref");
exportUtilsFn(utils.decrefCheckNullC, "decref_check_null");
exportUtilsFn(utils.expectFailed, "expect_failed");
exportUtilsFn(utils.getExpectFailures, "get_expect_failures");
@export(utils.panic, .{ .name = "roc_builtins.utils." ++ "panic", .linkage = .Weak });
}