aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c.cpp b/src/c.cpp
index 7d5b125..ff4f09a 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -47,6 +47,7 @@ struct CEngine : public Engine {
void eraseFn(CEnv& cenv, CFunc f);
CVal compileCall(CEnv& cenv, CFunc f, const ATuple* funcT, const vector<CVal>& args);
+ CVal compileCast(CEnv& cenv, CVal v, const AST* t);
CVal compileCons(CEnv& cenv, const ATuple* type, CVal rtti, const vector<CVal>& fields);
CVal compileDot(CEnv& cenv, CVal tup, int32_t index);
CVal compileGlobalSet(CEnv& cenv, const string& s, CVal v, const AST* t);
@@ -139,6 +140,12 @@ CEngine::compileCall(CEnv& cenv, CFunc func, const ATuple* funcT, const vector<C
}
CVal
+CEngine::compileCast(CEnv& cenv, CVal v, const AST* t)
+{
+ return v;
+}
+
+CVal
CEngine::compileCons(CEnv& cenv, const ATuple* type, CVal rtti, const vector<CVal>& fields)
{
return NULL;