mirror of
https://github.com/vlang/v.git
synced 2025-09-11 08:25:42 -04:00
os: make os.SystemError struct public so the os.error_* functions can be used by other modules (#20754)
This commit is contained in:
parent
8fe141d476
commit
b7b47fe130
@ -1158,10 +1158,11 @@ pub fn last_error() IError {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Magic constant because zero is used explicitly at times
|
// Magic constant because zero is used explicitly at times
|
||||||
const error_code_not_set = 0x7EFEFEFE
|
pub const error_code_not_set = 0x7EFEFEFE
|
||||||
|
|
||||||
@[params]
|
@[params]
|
||||||
struct SystemError {
|
pub struct SystemError {
|
||||||
|
pub:
|
||||||
msg string
|
msg string
|
||||||
code int = os.error_code_not_set
|
code int = os.error_code_not_set
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user