mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
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:
parent
5e35334281
commit
5e36709905
2 changed files with 12 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue