removing unsupported panic
This commit is contained in:
@@ -104,12 +104,8 @@ pub inline fn getLogVerboseLevel() LogVerboseLevel {
|
|||||||
.Standard;
|
.Standard;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn unsupported(comptime fmt: []const u8, args: anytype) void {
|
pub inline fn unsupported(comptime fmt: []const u8, args: anytype) void {
|
||||||
if (builtin.mode == std.builtin.OptimizeMode.Debug) {
|
std.log.scoped(.UNSUPPORTED).warn(fmt, args);
|
||||||
std.debug.panic("UNSUPPORTED " ++ fmt, args);
|
|
||||||
} else {
|
|
||||||
std.log.scoped(.UNSUPPORTED).warn(fmt, args);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
comptime {
|
comptime {
|
||||||
|
|||||||
Reference in New Issue
Block a user