mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 13:36:02 +01:00
Alternatively, we could make it return 0, but we don't need it in the first place because the caller exists conditionally too.
25 lines
331 B
C++
25 lines
331 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include <cstddef>
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* Initialise the Boehm GC, if applicable.
|
|
*/
|
|
void initGC();
|
|
|
|
/**
|
|
* Make sure `initGC` has already been called.
|
|
*/
|
|
void assertGCInitialized();
|
|
|
|
#ifdef HAVE_BOEHMGC
|
|
/**
|
|
* The number of GC cycles since initGC().
|
|
*/
|
|
size_t getGCCycles();
|
|
#endif
|
|
|
|
} // namespace nix
|