pub fn panic_on_unsafe_math_enabled() -> bool 
Expand description

Checks if the panic-on-unsafe-math flag is set in the FuelVM.

Returns

  • [bool] - true if panic-on-unsafe-math is enabled. false otherwise.

Examples

use std::flags::panic_on_unsafe_math_enabled;

fn main() {
    let is_enabled = panic_on_unsafe_math_enabled();
    // Panic on unsafe math is enabled by default.
    assert(is_enabled);
}