aboutsummaryrefslogtreecommitdiffstats
path: root/var.hpp
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-06-28 11:19:23 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-06-28 11:19:23 -0400
commitea55b08698329defe9155ba89f013efc9350a861 (patch)
tree516eb74131de3b507fa7d63e6be73f16eeabe760 /var.hpp
parent08f4a92102c9739e0736965186814e856ff727a1 (diff)
shortcut push-pops; don't env-copy functions
Diffstat (limited to 'var.hpp')
-rw-r--r--var.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/var.hpp b/var.hpp
index 1ffb8b8..3a5665c 100644
--- a/var.hpp
+++ b/var.hpp
@@ -36,6 +36,7 @@ struct Var {
static Var lookup(const std::string& name, int skip = 0);
static Var lookupLocal(const std::string& name);
+ static void rename(const std::string& old, const std::string& neww, int skip = 0);
static void pushScope();
static void popScope();
static Var& addGlobal(const std::string& name, Var var);