Browse Source

AK: Add a simple TriState type

enum class TriState : u8 { False, True, Unknown };
Andreas Kling 6 năm trước cách đây
mục cha
commit
d64e698bf1
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      AK/Types.h

+ 2 - 0
AK/Types.h

@@ -72,3 +72,5 @@ static_assert(explode_byte(0xff) == 0xffffffff);
 static_assert(explode_byte(0x80) == 0x80808080);
 static_assert(explode_byte(0x7f) == 0x7f7f7f7f);
 static_assert(explode_byte(0) == 0);
+
+enum class TriState : u8 { False, True, Unknown };