diff options
Diffstat (limited to 'tuplr.hpp')
-rw-r--r-- | tuplr.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |