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