Browse Source

Compilation error only if feature is set

pull/118/head
Andrea Ciliberti 2 years ago
parent
commit
ef4ea1797a
  1. 2
      ctru-rs/src/services/mod.rs

2
ctru-rs/src/services/mod.rs

@ -35,6 +35,8 @@ cfg_if::cfg_if! { @@ -35,6 +35,8 @@ cfg_if::cfg_if! {
//! romfs_dir = "romfs"
//! ```
// If the feature is set, but no "romfs" directory was found: send an error during compilation.
#[cfg(feature = "romfs")]
compile_error!("romfs feature is enabled but no romfs found!");
}
}

Loading…
Cancel
Save