Skip to content

Commit ce7cd5d

Browse files
committed
Engine: Compile hat predicates
1 parent c251456 commit ce7cd5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engine/internal/engine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,9 @@ void Engine::compile()
274274
auto script = std::make_shared<Script>(target.get(), block, this);
275275
m_scripts[block] = script;
276276
script->setCode(compiler.compile(block));
277+
278+
if (block->hatPredicateCompileFunction())
279+
script->setHatPredicateCode(compiler.compile(block, true));
277280
} else {
278281
std::cout << "warning: unsupported top level block: " << block->opcode() << std::endl;
279282
m_unsupportedBlocks.insert(block->opcode());

0 commit comments

Comments
 (0)