aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp14
1 files changed, 14 insertions, 0 deletions
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;
+}