diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-12-27 16:50:09 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-12-27 16:50:09 -0800 |
commit | 741974195712be8c53529cffc0b8222c970f685c (patch) | |
tree | 3d36cbcf4dd9525b604fa92c77b2ca181a893d6d /eval.h | |
parent | 2f55dd9244f4ea7ca613bbd41a7324e955d74f50 (diff) | |
download | kati-741974195712be8c53529cffc0b8222c970f685c.tar.gz |
Expand PeekVar to KATI_(deprecated|obsolete)_var
So that marking a variable as deprecated or obsolete does not cause the
variable to be inserted into the used environment table.
Diffstat (limited to 'eval.h')
-rw-r--r-- | eval.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -47,6 +47,9 @@ class Evaluator { // For target specific variables. Var* LookupVarInCurrentScope(Symbol name); + // Equivalent to LookupVar, but doesn't mark as used. + Var* PeekVar(Symbol name); + string EvalVar(Symbol name); const Loc& loc() const { return loc_; } |