mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
Add commentary to Frame::GetElement(int) about lack of offset adjustment
This commit is contained in:
parent
10ae10d4e4
commit
c0a5328f8e
1 changed files with 6 additions and 1 deletions
|
@ -58,7 +58,12 @@ public:
|
|||
* @return the value at index *n* of the underlying array.
|
||||
*/
|
||||
const ValPtr& GetElement(int n) const
|
||||
{ return frame[n].val; }
|
||||
{
|
||||
// Note: technically this may want to adjust by current_offset, but
|
||||
// in practice, this method is never called from anywhere other than
|
||||
// function call invocation, where current_offset should be zero.
|
||||
return frame[n].val;
|
||||
}
|
||||
|
||||
[[deprecated("Remove in v4.1. Use GetElement(int).")]]
|
||||
Val* NthElement(int n) const { return frame[n].val.get(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue