aboutsummaryrefslogtreecommitdiff
path: root/eval.h
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-05-20 16:35:35 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2016-05-20 16:35:35 +0900
commit1c3a69502c86c2c32223a267c5bf49db80b55f47 (patch)
tree733a71e0cdd3da441bb7aac8a678e88af61ec6b3 /eval.h
parentac6f169b10ccdb6593987591e29138698c6c1969 (diff)
downloadkati-1c3a69502c86c2c32223a267c5bf49db80b55f47.tar.gz
Support all kinds of command line variables
This fixes #51. TODO: add tests for command line variables
Diffstat (limited to 'eval.h')
-rw-r--r--eval.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.h b/eval.h
index 3f32d5c..bf8c98a 100644
--- a/eval.h
+++ b/eval.h
@@ -61,6 +61,7 @@ class Evaluator {
void Error(const string& msg);
void set_is_bootstrap(bool b) { is_bootstrap_ = b; }
+ void set_is_commandline(bool c) { is_commandline_ = c; }
void set_current_scope(Vars* v) { current_scope_ = v; }
@@ -109,6 +110,7 @@ class Evaluator {
Loc loc_;
bool is_bootstrap_;
+ bool is_commandline_;
bool avoid_io_;
// This value tracks the nest level of make expressions. For