From 338da7070dfe47fdf041b35a6d84c00fab6d9678 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Oct 2009 14:26:42 +0000 Subject: Compile top level definitions to globalas. git-svn-id: http://svn.drobilla.net/resp/tuplr@239 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/c.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/c.cpp') diff --git a/src/c.cpp b/src/c.cpp index 4e9a49f..563c2ba 100644 --- a/src/c.cpp +++ b/src/c.cpp @@ -141,6 +141,8 @@ struct CEngine : public Engine { CVal compileLiteral(CEnv& cenv, AST* lit); CVal compilePrimitive(CEnv& cenv, APrimitive* prim); CVal compileIf(CEnv& cenv, AIf* aif); + CVal compileGlobal(CEnv& cenv, AType* type, const string& name, CVal val); + CVal getGlobal(CEnv& cenv, CVal val); void writeModule(CEnv& cenv, std::ostream& os) { os << out; @@ -310,3 +312,15 @@ CEngine::compilePrimitive(CEnv& cenv, APrimitive* prim) out += (format("const %s %s = %s;\n") % *llType(cenv.type(prim)) % *varname % val).str(); return varname; } + +CVal +CEngine::compileGlobal(CEnv& cenv, AType* type, const string& name, CVal val) +{ + return NULL; +} + +CVal +CEngine::getGlobal(CEnv& cenv, CVal val) +{ + return NULL; +} -- cgit v1.2.1