Func: Add SetCapturesVec()

Add an API to directly set captures_vec for use by C++ compilation. The
current code keys off or asserts on ZAM stmts, making it difficult to
leverage captures_vec in other contexts.
This commit is contained in:
Arne Welzel 2024-08-15 10:08:47 +02:00
parent 5e35334281
commit 5e36709905
2 changed files with 12 additions and 4 deletions

View file

@ -77,7 +77,6 @@ protected:
// Methods related to sending lambdas via Broker.
std::optional<BrokerData> SerializeCaptures() const override;
void SetCaptures(Frame* f) override;
void SetCapturesVec(std::unique_ptr<std::vector<ZVal>> _captures_vec) { captures_vec = std::move(_captures_vec); }
FuncPtr DoClone() override;