mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Add OperationResult::MakeVal, use it to reduce some code duplication
This commit is contained in:
parent
99160f8fcd
commit
ad224d9a3b
3 changed files with 51 additions and 148 deletions
|
@ -20,6 +20,7 @@ struct OperationResult {
|
|||
ValPtr value;
|
||||
|
||||
RecordValPtr BuildVal();
|
||||
static RecordValPtr MakeVal(EnumValPtr code, std::string_view err_str = "", ValPtr value = nullptr);
|
||||
};
|
||||
|
||||
|
||||
|
@ -38,7 +39,7 @@ public:
|
|||
protected:
|
||||
void CompleteWithVal(Val* result);
|
||||
|
||||
IntrusivePtr<zeek::detail::trigger::Trigger> trigger;
|
||||
zeek::detail::trigger::TriggerPtr trigger;
|
||||
const void* assoc = nullptr;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue