Conditional structures: Difference between revisions

m
m (→‎If-statement: cleanup)
Line 4,600:
===Compile-Time===
====Conditional compilation====
Rust supports conditional compilation via the `cfg` annotation.
<lang rust>// This function will only be compiled if we are compiling on Linux
#[cfg(target_os = "linux")]