mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
use Ingredients directly for constructing functions
This commit is contained in:
parent
b6464814c9
commit
82588ca311
3 changed files with 17 additions and 10 deletions
|
@ -123,6 +123,14 @@ std::string render_call_stack()
|
|||
return rval;
|
||||
}
|
||||
|
||||
void Func::AddBody(const detail::FunctionIngredients& ingr, detail::StmtPtr new_body)
|
||||
{
|
||||
if ( ! new_body )
|
||||
new_body = ingr.Body();
|
||||
|
||||
AddBody(new_body, ingr.Inits(), ingr.FrameSize(), ingr.Priority(), ingr.Groups());
|
||||
}
|
||||
|
||||
void Func::AddBody(detail::StmtPtr new_body, const std::vector<detail::IDPtr>& new_inits,
|
||||
size_t new_frame_size, int priority)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue