Reject if (* init *) present

This commit is contained in:
Eddie Hung 2019-09-25 18:21:08 -07:00
parent 34aa3532fb
commit cd8a640989
2 changed files with 6 additions and 0 deletions

View File

@ -333,6 +333,9 @@ code
reject;
if (c.wire->get_bool_attribute(\keep))
reject;
Const init = c.wire->attributes.at(\init, State::Sx);
if (!init.is_fully_undef() && !init.is_fully_zero())
reject;
}
endcode

View File

@ -355,6 +355,9 @@ code
reject;
if (c.wire->get_bool_attribute(\keep))
reject;
Const init = c.wire->attributes.at(\init, State::Sx);
if (!init.is_fully_undef() && !init.is_fully_zero())
reject;
}
endcode