config: add floating window criteria
This commit is contained in:
parent
da64166e82
commit
8bb8b2a649
14 changed files with 78 additions and 14 deletions
11
src/criteria/tlm/tlm_matchers/tlmm_floating.rs
Normal file
11
src/criteria/tlm/tlm_matchers/tlmm_floating.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use crate::{criteria::crit_graph::CritFixedRootCriterion, tree::ToplevelData};
|
||||
|
||||
pub struct TlmMatchFloating(pub bool);
|
||||
|
||||
fixed_root_criterion!(TlmMatchFloating, floating);
|
||||
|
||||
impl CritFixedRootCriterion<ToplevelData> for TlmMatchFloating {
|
||||
fn matches(&self, data: &ToplevelData) -> bool {
|
||||
data.is_floating.get()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue