Update builtins to use RocStr as panic type

This commit is contained in:
Ayaz Hafiz 2022-11-21 18:42:32 -06:00
parent 25693f8ffe
commit f29b85e244
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 4 additions and 11 deletions

View file

@ -3,6 +3,7 @@ const builtin = @import("builtin");
const math = std.math;
const utils = @import("utils.zig");
const expect = @import("expect.zig");
const panic_utils = @import("panic.zig");
const ROC_BUILTINS = "roc_builtins";
const NUM = "num";
@ -166,7 +167,7 @@ comptime {
exportUtilsFn(utils.decrefCheckNullC, "decref_check_null");
exportUtilsFn(utils.allocateWithRefcountC, "allocate_with_refcount");
@export(utils.panic, .{ .name = "roc_builtins.utils." ++ "panic", .linkage = .Weak });
@export(panic_utils.panic, .{ .name = "roc_builtins.utils." ++ "panic", .linkage = .Weak });
if (builtin.target.cpu.arch != .wasm32) {
exportUtilsFn(expect.expectFailedStartSharedBuffer, "expect_failed_start_shared_buffer");