mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Incremental commit: implementing a wrapper for the Val class.
Just a checkpoint: need to add / update tests to make sure things work as expected. Should build / pass core btests, though.
This commit is contained in:
parent
8d04f58eda
commit
d639488d36
8 changed files with 127 additions and 56 deletions
|
@ -559,7 +559,7 @@ int Manager::HookLoadFile(const string& file)
|
|||
return rc;
|
||||
}
|
||||
|
||||
Val* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs) const
|
||||
ValWrapper* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs) const
|
||||
{
|
||||
HookArgumentList args;
|
||||
|
||||
|
@ -573,7 +573,7 @@ Val* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs)
|
|||
|
||||
hook_list* l = hooks[HOOK_CALL_FUNCTION];
|
||||
|
||||
Val* v = 0;
|
||||
ValWrapper* v = 0;
|
||||
|
||||
if ( l )
|
||||
for ( hook_list::iterator i = l->begin(); i != l->end(); ++i )
|
||||
|
@ -582,7 +582,7 @@ Val* Manager::HookCallFunction(const Func* func, Frame* parent, val_list* vargs)
|
|||
|
||||
v = p->HookCallFunction(func, parent, vargs);
|
||||
|
||||
if ( v )
|
||||
if ( v && v-> processed)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue