Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUST

rust `cfg` which is always true / false

#[cfg(all())]
fn main() {
    println!("It works!");
}

#[cfg(any())]
fn main() {
    println!("It disappears!");
}
 
PREVIOUS NEXT
Tagged: #rust #true #false
ADD COMMENT
Topic
Name
2+4 =