Explictly define log level ordering

This was technically undefined before.
This commit is contained in:
Isaac Freund 2020-03-29 21:13:36 +02:00
parent 5e84d69237
commit 5020106b93
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -3,10 +3,10 @@ const std = @import("std");
pub const Log = enum { pub const Log = enum {
const Self = @This(); const Self = @This();
Silent, Silent = 0,
Error, Error = 1,
Info, Info = 2,
Debug, Debug = 3,
var verbosity = Self.Error; var verbosity = Self.Error;