aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-16 18:33:10 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-16 18:33:10 +0200
commitf89349f07eda66dea2aa3b70bdc2c5c649406bdc (patch)
tree9ff9148956592d29fc1c7e45ccf4dfc64b2457b5 /src/libexpr/eval.cc
parent0858738355dd9bdb20a723f15629c423fe14a7b1 (diff)
parentefaffaa9d1de38efecb718aa7a99ba1f2e342ade (diff)
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r--src/libexpr/eval.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index c5945adf0..83be997e9 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -23,6 +23,8 @@
#if HAVE_BOEHMGC
+#define GC_INCLUDE_NEW
+
#include <gc/gc.h>
#include <gc/gc_cpp.h>
@@ -57,6 +59,12 @@ static char * dupStringWithLen(const char * s, size_t size)
}
+RootValue allocRootValue(Value * v)
+{
+ return std::allocate_shared<Value *>(traceable_allocator<Value *>(), v);
+}
+
+
static void printValue(std::ostream & str, std::set<const Value *> & active, const Value & v)
{
checkInterrupt();