aboutsummaryrefslogtreecommitdiffstats
path: root/src/resp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resp.hpp')
-rw-r--r--src/resp.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resp.hpp b/src/resp.hpp
index 439d00b..9bc34e8 100644
--- a/src/resp.hpp
+++ b/src/resp.hpp
@@ -748,7 +748,7 @@ Engine* resp_new_c_engine();
/// Compile-Time Environment
struct CEnv {
CEnv(PEnv& p, TEnv& t, Engine* e, ostream& os=std::cout, ostream& es=std::cerr)
- : out(os), err(es), penv(p), tenv(t), currentFn(NULL), _engine(e)
+ : out(os), err(es), penv(p), tenv(t), currentFn(NULL), repl(false), _engine(e)
{}
~CEnv() { Object::pool.collect(GC::Roots()); }
@@ -829,6 +829,8 @@ struct CEnv {
CFunc currentFn; ///< Currently compiling function
+ bool repl;
+
struct FreeVars : public std::vector<const ASymbol*> {
FreeVars(const ATuple* f, const std::string& n) : fn(f), implName(n) {}
const ATuple* const fn;