aboutsummaryrefslogtreecommitdiffstats
path: root/tuplr.hpp
diff options
context:
space:
mode:
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);