Utilize union #shared_nil to core:image Error

This commit is contained in:
gingerBill
2022-03-24 12:06:18 +00:00
parent b6b3377786
commit 17e36bd5e1
4 changed files with 39 additions and 33 deletions
+2 -1
View File
@@ -118,7 +118,7 @@ Option :: enum {
}
Options :: distinct bit_set[Option]
Error :: union {
Error :: union #shared_nil {
General_Image_Error,
PNG_Error,
@@ -137,6 +137,7 @@ General_Image_Error :: enum {
}
PNG_Error :: enum {
None = 0,
Invalid_PNG_Signature,
IHDR_Not_First_Chunk,
IHDR_Corrupt,