Jump to content

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")]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.