mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 15:13:08 +00:00
Expose failing_allocator as *Allocator instead of const FailingAllocator
This commit is contained in:
parent
40da2c6098
commit
1428ef3b07
@ -13,7 +13,7 @@ const ArrayList = std.ArrayList;
|
||||
const builtin = @import("builtin");
|
||||
|
||||
pub const FailingAllocator = @import("failing_allocator.zig").FailingAllocator;
|
||||
pub const failing_allocator = FailingAllocator.init(global_allocator, 0);
|
||||
pub const failing_allocator = &FailingAllocator.init(global_allocator, 0).allocator;
|
||||
|
||||
pub const runtime_safety = switch (builtin.mode) {
|
||||
builtin.Mode.Debug, builtin.Mode.ReleaseSafe => true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user