2019-09-08 21:48:23 +02:00
|
|
|
const builtin = @import("builtin");
|
2019-10-01 12:52:23 +02:00
|
|
|
const std = @import("std");
|
2019-11-02 03:18:02 +01:00
|
|
|
const MemProfile = @import("mem_mock.zig").MemProfile;
|
2019-09-08 21:48:23 +02:00
|
|
|
|
2020-01-01 20:12:36 +01:00
|
|
|
pub fn panic(trace: ?*builtin.StackTrace, comptime format: []const u8, args: var) noreturn {
|
2019-09-08 21:48:23 +02:00
|
|
|
@setCold(true);
|
2019-10-01 12:52:23 +02:00
|
|
|
std.debug.panic(format, args);
|
2019-09-08 21:48:23 +02:00
|
|
|
}
|
2019-11-02 03:18:02 +01:00
|
|
|
|
|
|
|
pub fn init(mem_profile: *const MemProfile, allocator: *std.mem.Allocator) !void {
|
|
|
|
// This is never run so just return an arbitrary error to satisfy the compiler
|
|
|
|
return error.NotNeeded;
|
|
|
|
}
|