mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
11 lines
149 B
V
11 lines
149 B
V
module sync
|
|
|
|
[noreturn]
|
|
fn cpanic(res int) {
|
|
panic(unsafe { tos_clone(&u8(C.strerror(res))) })
|
|
}
|
|
|
|
[noreturn]
|
|
fn cpanic_errno() {
|
|
cpanic(C.errno)
|
|
}
|