Browse Source

AK: Add a simple TriState type

enum class TriState : u8 { False, True, Unknown };
Andreas Kling 6 years ago
parent
commit
d64e698bf1
1 changed files with 2 additions and 0 deletions
  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 };