mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
nix_api_expr: add nix_gc_now()
This commit is contained in:
parent
ded0ef6f6c
commit
ada2af4f88
2 changed files with 12 additions and 2 deletions
|
@ -132,9 +132,12 @@ void nix_gc_decref(const void *p) {
|
|||
// todo: else { throw? }
|
||||
}
|
||||
|
||||
void nix_gc_now() { GC_gcollect(); }
|
||||
|
||||
#else
|
||||
void nix_gc_incref(const void *){};
|
||||
void nix_gc_decref(const void *){};
|
||||
void nix_gc_incref(const void *) {}
|
||||
void nix_gc_decref(const void *) {}
|
||||
void nix_gc_now() {}
|
||||
#endif
|
||||
|
||||
void nix_gc_register_finalizer(void *obj, void *cd,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue