mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
log: improve the most common use case (#19242)
This commit is contained in:
parent
55575fd7bd
commit
6fb4a481f8
16 changed files with 576 additions and 150 deletions
11
vlib/sync/sync.c.v
Normal file
11
vlib/sync/sync.c.v
Normal file
|
@ -0,0 +1,11 @@
|
|||
module sync
|
||||
|
||||
[noreturn]
|
||||
fn cpanic(res int) {
|
||||
panic(unsafe { tos_clone(&u8(C.strerror(res))) })
|
||||
}
|
||||
|
||||
[noreturn]
|
||||
fn cpanic_errno() {
|
||||
cpanic(C.errno)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue