Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 17 #error "Using garbage collection requires libgc" 26 #define IMMER_GC_REQUIRE_INIT 1 28 #define IMMER_GC_REQUIRE_INIT 0 31 #if IMMER_GC_REQUIRE_INIT 35 template <
int Dummy=0>
38 gc_initializer() { GC_init(); }
39 static gc_initializer init;
43 gc_initializer<D> gc_initializer<D>::init {};
45 inline void gc_initializer_guard()
47 static gc_initializer<> init_ = gc_initializer<>::init;
53 #define IMMER_GC_INIT_GUARD_ ::immer::detail::gc_initializer_guard() 57 #define IMMER_GC_INIT_GUARD_ 59 #endif // IMMER_GC_REQUIRE_INIT 104 auto p = GC_malloc(n);
106 throw std::bad_alloc{};
113 auto p = GC_malloc_atomic(n);
115 throw std::bad_alloc{};
static void * allocate(std::size_t n, norefs_tag)
static void deallocate(std::size_t, void *data, norefs_tag)
#define IMMER_UNLIKELY(cond)
#define IMMER_GC_INIT_GUARD_
static void * allocate(std::size_t n)
static void deallocate(std::size_t, void *data)