mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Make BIFs just return ValPtr directly instead of BifReturnVal
This commit is contained in:
parent
5602546f2e
commit
2aaaab4dad
11 changed files with 12 additions and 55 deletions
|
@ -729,7 +729,7 @@ ValPtr BuiltinFunc::Invoke(Args* args, Frame* parent) const {
|
|||
|
||||
const CallExpr* call_expr = parent ? parent->GetCall() : nullptr;
|
||||
call_stack.emplace_back(CallInfo{call_expr, this, *args});
|
||||
auto result = std::move(func(parent, args).rval);
|
||||
auto result = func(parent, args);
|
||||
call_stack.pop_back();
|
||||
|
||||
if ( result && g_trace_state.DoTrace() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue