mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Script optimization maintenance and updates:
maintenance fixes for variadic run-time checks, '_' placeholder identifier "-O allow-cond" permits compiling scripts to C++ when influenced by @if conditionals more robust standalone compile-to-C++ properties fix for nested "when" statements test suite updates
This commit is contained in:
parent
bc0284aefa
commit
ee0a6f6835
40 changed files with 257 additions and 158 deletions
|
@ -52,10 +52,13 @@ public:
|
|||
for ( int i = 0; i < ind_lv->Length(); ++i )
|
||||
{
|
||||
ValPtr ind_lv_p = ind_lv->Idx(i);
|
||||
auto& var = frame[aux->loop_vars[i]];
|
||||
auto& t = aux->loop_var_types[i];
|
||||
if ( ZVal::IsManagedType(t) )
|
||||
auto lv = aux->loop_vars[i];
|
||||
if ( lv < 0 )
|
||||
continue;
|
||||
auto& var = frame[lv];
|
||||
if ( aux->lvt_is_managed[i] )
|
||||
ZVal::DeleteManagedType(var);
|
||||
auto& t = aux->loop_var_types[i];
|
||||
var = ZVal(ind_lv_p, t);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue