mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Deprecate returning Val* from BIFs
This commit is contained in:
parent
6c0a9b0d8f
commit
80d3918b13
3 changed files with 8 additions and 0 deletions
2
NEWS
2
NEWS
|
@ -117,6 +117,8 @@ Deprecated Functionality
|
|||
|
||||
- ``binpac::string_to_val()`` is deprecated, use ``StringVal`` constructor.
|
||||
|
||||
- Returning ``Val*`` from BIFs is deprecated, return ``IntrusivePtr`` instead.
|
||||
|
||||
Zeek 3.1.0
|
||||
==========
|
||||
|
||||
|
|
|
@ -891,6 +891,9 @@ function_ingredients::~function_ingredients()
|
|||
delete inits;
|
||||
}
|
||||
|
||||
BifReturnVal::BifReturnVal(std::nullptr_t) noexcept
|
||||
{ }
|
||||
|
||||
BifReturnVal::BifReturnVal(Val* v) noexcept
|
||||
: rval(AdoptRef{}, v)
|
||||
{ }
|
||||
|
|
|
@ -201,6 +201,9 @@ public:
|
|||
: rval(AdoptRef{}, v.release())
|
||||
{ }
|
||||
|
||||
BifReturnVal(std::nullptr_t) noexcept;
|
||||
|
||||
[[deprecated("Remove in v4.1. Return an IntrusivePtr instead.")]]
|
||||
BifReturnVal(Val* v) noexcept;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue