diff options
author | David Robillard <d@drobilla.net> | 2010-12-10 01:12:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-10 01:12:16 +0000 |
commit | edd04d465f41613d85b505844542c366b6117f86 (patch) | |
tree | f53feba5d71a492e2e8efc993823bdc7d649a026 /src/c.cpp | |
parent | 46af3ed1f9c552928ef61b4e609157768bcf4807 (diff) | |
download | resp-edd04d465f41613d85b505844542c366b6117f86.tar.gz resp-edd04d465f41613d85b505844542c366b6117f86.tar.bz2 resp-edd04d465f41613d85b505844542c366b6117f86.zip |
Convert match form to if at lift stage (remove knowledge of match from compile stage and backends).
git-svn-id: http://svn.drobilla.net/resp/resp@342 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -58,7 +58,7 @@ struct CEngine : public Engine { CVal compileLiteral(CEnv& cenv, const AST* lit); CVal compilePrimitive(CEnv& cenv, const ATuple* prim); CVal compileString(CEnv& cenv, const char* str); - + void writeModule(CEnv& cenv, std::ostream& os); const string call(CEnv& cenv, CFunc f, const AType* retT); @@ -72,11 +72,11 @@ private: string name; string text; }; - + inline Value* llVal(CVal v) { return static_cast<Value*>(v); } inline Function* llFunc(CFunc f) { return static_cast<Function*>(f); } const Type* llType(const AType* t); - + std::string out; }; |