Macros and definitions in LLL.

This commit is contained in:
Gav Wood 2014-05-25 02:17:17 +02:00
parent e74dfb4685
commit 9d7047272d

4
vm.cpp
View File

@ -162,7 +162,7 @@ public:
thisTxCode.clear(); thisTxCode.clear();
if (_o["code"].type() == str_type) if (_o["code"].type() == str_type)
compileLisp(_o["code"].get_str(), false, thisTxCode); thisTxCode = compileLLL(_o["code"].get_str(), nullptr);
else else
for (auto const& j: _o["code"].get_array()) for (auto const& j: _o["code"].get_array())
thisTxCode.push_back(toByte(j)); thisTxCode.push_back(toByte(j));
@ -277,7 +277,7 @@ public:
get<2>(a)[adr++] = toInt(k); get<2>(a)[adr++] = toInt(k);
} }
if (o["code"].type() == str_type) if (o["code"].type() == str_type)
compileLisp(o["code"].get_str(), false, get<3>(a)); get<3>(a) = compileLLL(o["code"].get_str(), nullptr);
else else
{ {
get<3>(a).clear(); get<3>(a).clear();