These are hooks to: 1. control whether contract checks are run 2. allow 3rd party tools to intercept and reintepret the results of running contracts.
6 lines
148 B
Rust
6 lines
148 B
Rust
#![crate_type = "lib"]
|
|
|
|
pub fn contract_checks_are_enabled() -> bool {
|
|
cfg!(contract_checks) //~ ERROR `cfg(contract_checks)` is experimental
|
|
}
|