os: make os.SystemError struct public so the os.error_* functions can be used by other modules (#20754)

This commit is contained in:
syrmel 2024-02-08 12:20:50 +01:00 committed by GitHub
parent 8fe141d476
commit b7b47fe130
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}