aboutsummaryrefslogtreecommitdiffstats
path: root/src/compile.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-09 01:11:41 +0000
committerDavid Robillard <d@drobilla.net>2010-12-09 01:11:41 +0000
commit152c910f89e078099a5aba6d7d6f7fa28ceea2c3 (patch)
tree380b2ad500a05a48e8e378c280941d2f3497983b /src/compile.cpp
parente78acdecac3611299db12705c36bbc882efd42fe (diff)
downloadresp-152c910f89e078099a5aba6d7d6f7fa28ceea2c3.tar.gz
resp-152c910f89e078099a5aba6d7d6f7fa28ceea2c3.tar.bz2
resp-152c910f89e078099a5aba6d7d6f7fa28ceea2c3.zip
Consistent engine global[Set|Get] interface.
git-svn-id: http://svn.drobilla.net/resp/resp@321 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/compile.cpp')
-rw-r--r--src/compile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compile.cpp b/src/compile.cpp
index 6a6eb06..8cde2e8 100644
--- a/src/compile.cpp
+++ b/src/compile.cpp
@@ -101,8 +101,8 @@ compile_def(CEnv& cenv, const ATuple* def) throw()
cenv.def(sym, body, cenv.type(body), NULL); // define stub first for recursion
CVal val = resp_compile(cenv, body);
if (cenv.vals.size() == 1 && cenv.type(body)->head()->str() != "Fn") {
- val = cenv.engine()->compileGlobal(
- cenv, cenv.type(body), sym->str(), val);
+ val = cenv.engine()->compileGlobalSet(
+ cenv, sym->str(), val, cenv.type(body));
cenv.lock(def);
}
cenv.vals.def(sym, val);