about summary refs log tree commit diff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-03-19T19·02+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-03-19T19·02+0100
commit726f7f7fc92f4914bca450a37b8b85b1018afc01 (patch)
tree7e484a7a0249b9ae3fda87347568a0b77505335b /src/libexpr/eval.hh
parentda6b704b197f19c386f0e53f5553252a226650bb (diff)
Fix Boehm API violation
We were calling GC_INIT() after doing an allocation (in the baseEnv
construction), which is not allowed.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index bfaa4081d488..627fae3ff363 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -121,6 +121,10 @@ std::ostream & operator << (std::ostream & str, const Value & v);
 typedef list<std::pair<string, Path> > SearchPath;
 
 
+/* Initialise the Boehm GC, if applicable. */
+void initGC();
+
+
 class EvalState
 {
 public: