make the mmapped buffer configurable

This commit is contained in:
Folkert 2022-07-26 23:29:18 +02:00
parent 64c2d8d87e
commit 40d7e94a17
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 37 additions and 30 deletions

View file

@ -169,6 +169,9 @@ comptime {
if (builtin.target.cpu.arch != .wasm32) {
exportUtilsFn(expect.expectFailedStart, "expect_failed_start");
exportUtilsFn(expect.expectFailedFinalize, "expect_failed_finalize");
// sets the buffer used for expect failures
@export(expect.setMmappedFile, .{ .name = "set_mmapped_file", .linkage = .Strong });
}
if (builtin.target.cpu.arch == .aarch64) {