mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 03:40:08 +00:00
make sure net.Network_Error is of size 8
This commit is contained in:
@@ -72,6 +72,8 @@ Network_Error :: union #shared_nil {
|
|||||||
DNS_Error,
|
DNS_Error,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#assert(size_of(Network_Error) == 8)
|
||||||
|
|
||||||
General_Error :: enum u32 {
|
General_Error :: enum u32 {
|
||||||
None = 0,
|
None = 0,
|
||||||
Unable_To_Enumerate_Network_Interfaces = 1,
|
Unable_To_Enumerate_Network_Interfaces = 1,
|
||||||
@@ -80,7 +82,7 @@ General_Error :: enum u32 {
|
|||||||
// `Platform_Error` is used to wrap errors returned by the different platforms that don't fit a common error.
|
// `Platform_Error` is used to wrap errors returned by the different platforms that don't fit a common error.
|
||||||
Platform_Error :: enum u32 {}
|
Platform_Error :: enum u32 {}
|
||||||
|
|
||||||
Parse_Endpoint_Error :: enum {
|
Parse_Endpoint_Error :: enum u32 {
|
||||||
None = 0,
|
None = 0,
|
||||||
Bad_Port = 1,
|
Bad_Port = 1,
|
||||||
Bad_Address,
|
Bad_Address,
|
||||||
|
|||||||
Reference in New Issue
Block a user