mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: replace usages of C.atexit(cb) with at_exit(cb) or {}
(part 2) (#21263)
This commit is contained in:
parent
2a651396cf
commit
a8d0cdd31b
9 changed files with 10 additions and 12 deletions
|
@ -133,7 +133,7 @@ fn deinit() {
|
|||
// init initializes the default RNG.
|
||||
fn init() {
|
||||
default_rng = new_default()
|
||||
C.atexit(deinit)
|
||||
at_exit(deinit) or {}
|
||||
}
|
||||
|
||||
fn read_32(mut rng PRNG, mut buf []u8) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue