mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Type: use class IntrusivePtr in TypeList
This commit is contained in:
parent
de0289125b
commit
73cea5dcad
13 changed files with 62 additions and 74 deletions
|
@ -145,8 +145,8 @@ RuleConditionEval::RuleConditionEval(const char* func)
|
|||
rules_error("eval function type must yield a 'bool'", func);
|
||||
|
||||
TypeList tl;
|
||||
tl.Append(internal_type("signature_state")->Ref());
|
||||
tl.Append(base_type(TYPE_STRING));
|
||||
tl.Append({NewRef{}, internal_type("signature_state")});
|
||||
tl.Append({AdoptRef{}, base_type(TYPE_STRING)});
|
||||
|
||||
if ( ! f->CheckArgs(tl.Types()) )
|
||||
rules_error("eval function parameters must be a 'signature_state' "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue