aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-06-20 18:16:00 +0000
committerDavid Robillard <d@drobilla.net>2009-06-20 18:16:00 +0000
commitced439fb6918e8848882d0e3a65f11b72da92425 (patch)
tree02864e53389ac2339266cc043b0b80ae0d511555 /tuplr.hpp
parentf8e16165e6666fceaac66c777851a0f99ba8f5fc (diff)
downloadresp-ced439fb6918e8848882d0e3a65f11b72da92425.tar.gz
resp-ced439fb6918e8848882d0e3a65f11b72da92425.tar.bz2
resp-ced439fb6918e8848882d0e3a65f11b72da92425.zip
Move eval and repl to tuplr.cpp (non-backend dependent code).
git-svn-id: http://svn.drobilla.net/resp/tuplr@133 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'tuplr.hpp')
-rw-r--r--tuplr.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/tuplr.hpp b/tuplr.hpp
index f70fc9c..c548110 100644
--- a/tuplr.hpp
+++ b/tuplr.hpp
@@ -556,6 +556,14 @@ struct TEnv : public Env< const ASymbol*, pair<AST*, AType*> > {
* Code Generation *
***************************************************************************/
+CFunction startFunction(CEnv& cenv, const std::string& name,
+ const AType* retT, const ATuple& argsT,
+ const vector<string> argNames=vector<string>());
+
+void finishFunction(CEnv& cenv, CFunction f, CValue ret);
+void eraseFunction(CEnv& cenv, CFunction f);
+const string call(CEnv& cenv, CFunction f, AType* retT);
+
/// Compile-Time Environment
struct CEnv {
CEnv(PEnv& p, TEnv& t, CEngine e, ostream& os=std::cout, ostream& es=std::cerr);