Add #partial [Enum]Type{...} support to check for missing enumerated array fields

This commit is contained in:
gingerBill
2022-02-05 14:02:21 +00:00
parent e870041fe6
commit b8c4bf2afb
4 changed files with 149 additions and 88 deletions
+1
View File
@@ -67,6 +67,7 @@ OS :: enum u8 {
Unknown = 255,
}
OS_Name :: #sparse[OS]string{
._Unknown = "",
.FAT = "FAT",
.Amiga = "Amiga",
.VMS = "VMS/OpenVMS",
+1
View File
@@ -182,6 +182,7 @@ Error_String :: #sparse[Error]string{
.Max_Iterations_Reached = "Max iterations reached",
.Buffer_Overflow = "Buffer overflow",
.Integer_Overflow = "Integer overflow",
.Integer_Underflow = "Integer underflow",
.Division_by_Zero = "Division by zero",
.Math_Domain_Error = "Math domain error",