mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
introduced notion of light-weight Frame clones
This commit is contained in:
parent
0c434ca4f8
commit
4af6b52876
2 changed files with 19 additions and 0 deletions
11
src/Frame.cc
11
src/Frame.cc
|
@ -120,6 +120,17 @@ Frame* Frame::Clone() const
|
|||
return other;
|
||||
}
|
||||
|
||||
Frame* Frame::LightClone() const
|
||||
{
|
||||
Frame* other = new Frame(0, function, func_args);
|
||||
|
||||
other->call = call;
|
||||
other->assoc = assoc;
|
||||
other->trigger = trigger;
|
||||
|
||||
return other;
|
||||
}
|
||||
|
||||
static bool val_is_func(const ValPtr& v, ScriptFunc* func)
|
||||
{
|
||||
if ( v->GetType()->Tag() != TYPE_FUNC )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue