mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58: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
|
@ -106,6 +106,21 @@ void HookArgument::Describe(ODesc* d) const
|
|||
d->Add("<null>");
|
||||
break;
|
||||
|
||||
case WRAPPED_VAL:
|
||||
if ( arg.wrapper )
|
||||
{
|
||||
d->Add("wrapped(");
|
||||
if(arg.wrapper->value)
|
||||
{
|
||||
arg.wrapper->value->Describe(d);
|
||||
}
|
||||
else
|
||||
d->Add("<null>");
|
||||
d->Add(")");
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case VAL_LIST:
|
||||
if ( arg.vals )
|
||||
{
|
||||
|
@ -271,7 +286,7 @@ int Plugin::HookLoadFile(const std::string& file, const std::string& ext)
|
|||
return -1;
|
||||
}
|
||||
|
||||
Val* Plugin::HookCallFunction(const Func* func, Frame *parent, val_list* args)
|
||||
ValWrapper* Plugin::HookCallFunction(const Func* func, Frame *parent, val_list* args)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue