diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2026-01-16 13:25:03 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-16 13:25:03 +0000 |
| commit | d46c547264c2be4ff46887d96354e653dbd6069d (patch) | |
| tree | 245f7cc22efcb64061069321a3671453cbcb78aa /core/flags/errors.odin | |
| parent | a2fa32a518357aefa11edd0978f48625be7dc9e5 (diff) | |
| parent | 57d02cb14850e7b241f5ec519ff5e44c6129a5fe (diff) | |
Merge pull request #6124 from laytan/nbio
Add `core:nbio`
Diffstat (limited to 'core/flags/errors.odin')
| -rw-r--r-- | core/flags/errors.odin | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/flags/errors.odin b/core/flags/errors.odin index 3d34a95d3..e9b2e18c8 100644 --- a/core/flags/errors.odin +++ b/core/flags/errors.odin @@ -1,5 +1,7 @@ package flags +import "base:runtime" +import "core:net" import "core:os" Parse_Error_Reason :: enum { @@ -24,6 +26,12 @@ Parse_Error :: struct { message: string, } +Unified_Parse_Error_Reason :: union #shared_nil { + Parse_Error_Reason, + runtime.Allocator_Error, + net.Parse_Endpoint_Error, +} + // Raised during parsing. // Provides more granular information than what just a string could hold. Open_File_Error :: struct { |