aboutsummaryrefslogtreecommitdiffstats
path: root/src/compile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile.cpp')
-rw-r--r--src/compile.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compile.cpp b/src/compile.cpp
index 8c83e15..addad2b 100644
--- a/src/compile.cpp
+++ b/src/compile.cpp
@@ -27,6 +27,14 @@
using namespace std;
+#define COMPILE_LITERAL(CT) \
+template<> CValue ALiteral<CT>::compile(CEnv& cenv) { \
+ return cenv.engine()->compileLiteral(cenv, this); \
+}
+COMPILE_LITERAL(int32_t);
+COMPILE_LITERAL(float);
+COMPILE_LITERAL(bool);
+
CValue
ASymbol::compile(CEnv& cenv)
{