mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
support for subclassing ScriptFunc's, esp. for alternate lambda closures
This commit is contained in:
parent
91c2e05099
commit
78f18b4fa6
3 changed files with 26 additions and 6 deletions
|
@ -587,6 +587,11 @@ bool ScriptFunc::StrengthenClosureReference(Frame* f)
|
|||
return true;
|
||||
}
|
||||
|
||||
bool ScriptFunc::CopySemantics() const
|
||||
{
|
||||
return type->GetCaptures().has_value();
|
||||
}
|
||||
|
||||
void ScriptFunc::SetClosureFrame(Frame* f)
|
||||
{
|
||||
if ( closure )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue