Macro itron_solid_asp3::macros::tt_is_kernel [−][src]
pub macro tt_is_kernel {
($caller : tt input = [{ "solid_asp3" $(| $($rest : tt) *) ? }]) => { ... },
($caller : tt input = [{ $other_kernel : literal $(| $($rest : tt) *) ? }]) => { ... },
($caller : tt input = [{ }]) => { ... },
}
This is supported on crate features
nightly
and unstable
only.Expand description
Determine if this crate was compiled for the specified kernel.
Example
tt_call::tt_if! {
condition = [{ itron::macros::tt_is_kernel }]
input = [{ "asp3" }]
true = [{ println!("We are on TOPPERS/ASP3, yay!"); }]
false = [{}]
}