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
|
@ -16,7 +16,7 @@ mut:
|
|||
// init will be called before the user's main program starts, to initialize the default logger
|
||||
fn init() {
|
||||
default_logger = new_thread_safe_log()
|
||||
C.atexit(deinit)
|
||||
at_exit(deinit) or {}
|
||||
}
|
||||
|
||||
// deinit will be called on exit of the program and will free the memory allocated for the default logger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue