all: replace usages of C.atexit(cb) with at_exit(cb) or {} (part 2) (#21263)

This commit is contained in:
Delyan Angelov 2024-04-12 13:51:18 +03:00 committed by GitHub
parent 2a651396cf
commit a8d0cdd31b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 10 additions and 12 deletions

View file

@ -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