summaryrefslogtreecommitdiff
path: root/runtime.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'runtime.cpp')
-rw-r--r--runtime.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime.cpp b/runtime.cpp
index 63e0b52..3cf607d 100644
--- a/runtime.cpp
+++ b/runtime.cpp
@@ -129,7 +129,9 @@ void runpasseval(const vector<string> &T,
} else {
auto it=functions.find(word);
if(it!=functions.end()){
+ builtins.find("enterscope")->second(S,variables);
runpasseval(it->second.first,S,functions,variables,it->second.second);
+ builtins.find("leavescope")->second(S,variables);
} else {
if(word=="while"){
if(S.size()<1)throw string("Keyword 'while' needs 1 stack item");