mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
feature completeness for ZAM
This commit is contained in:
parent
65a7e3de5f
commit
ecc93606c4
5 changed files with 66 additions and 29 deletions
|
@ -20,20 +20,6 @@ bool ZAM_error = false;
|
|||
|
||||
bool is_ZAM_compilable(const ProfileFunc* pf, const char** reason)
|
||||
{
|
||||
if ( pf->NumLambdas() > 0 )
|
||||
{
|
||||
if ( reason )
|
||||
*reason = "use of lambda";
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( pf->NumWhenStmts() > 0 )
|
||||
{
|
||||
if ( reason )
|
||||
*reason = "use of \"when\"";
|
||||
return false;
|
||||
}
|
||||
|
||||
auto b = pf->ProfiledBody();
|
||||
auto is_hook = pf->ProfiledFunc()->Flavor() == FUNC_FLAVOR_HOOK;
|
||||
if ( b && ! script_is_valid(b, is_hook) )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue