diff options
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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; +} |