mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 15:18:20 +00:00
new function for getting the location, if any, associated with the current call
This commit is contained in:
parent
8fb30f1d62
commit
8f2637decb
6 changed files with 14 additions and 8 deletions
|
@ -616,6 +616,11 @@ void Frame::CaptureClosure(Frame* c, IDPList arg_outer_ids)
|
|||
// if (c) closure = c->SelectiveClone(outer_ids);
|
||||
}
|
||||
|
||||
const detail::Location* Frame::GetCallLocation() const
|
||||
{
|
||||
return call ? call->GetLocationInfo() : nullptr;
|
||||
}
|
||||
|
||||
void Frame::SetTrigger(trigger::TriggerPtr arg_trigger)
|
||||
{
|
||||
trigger = std::move(arg_trigger);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue