Skip to content

Commit

Permalink
os: make os.SystemError struct public so the os.error_* functions can…
Browse files Browse the repository at this point in the history
… be used by other modules (#20754)
  • Loading branch information
syrmel committed Feb 8, 2024
1 parent 8fe141d commit b7b47fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vlib/os/os.c.v
Expand Up @@ -1158,10 +1158,11 @@ pub fn last_error() IError {
}

// Magic constant because zero is used explicitly at times
const error_code_not_set = 0x7EFEFEFE
pub const error_code_not_set = 0x7EFEFEFE

@[params]
struct SystemError {
pub struct SystemError {
pub:
msg string
code int = os.error_code_not_set
}
Expand Down

0 comments on commit b7b47fe

Please sign in to comment.