diff options
author | David Robillard <d@drobilla.net> | 2010-12-09 01:11:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-09 01:11:41 +0000 |
commit | 152c910f89e078099a5aba6d7d6f7fa28ceea2c3 (patch) | |
tree | 380b2ad500a05a48e8e378c280941d2f3497983b /src/compile.cpp | |
parent | e78acdecac3611299db12705c36bbc882efd42fe (diff) | |
download | resp-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.cpp | 4 |
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); |