mirror of
https://github.com/ahgamut/rust-ape-example.git
synced 2024-11-21 23:41:00 +00:00
16 lines
198 B
Rust
16 lines
198 B
Rust
// ./src/attribute/cfg/custom.md
|
|
|
|
/*
|
|
#[cfg(some_condition)]*/
|
|
fn conditional_function() {
|
|
println!("condition met!");
|
|
}
|
|
|
|
fn part0() {
|
|
conditional_function();
|
|
}
|
|
|
|
pub fn main() {
|
|
part0();
|
|
}
|
|
|