Macro default_value

Source
macro_rules! default_value {
    (Str) => { ... };
    (Int) => { ... };
    (Bool) => { ... };
    (Float) => { ... };
    (ListStr) => { ... };
    (ListInt) => { ... };
}
Expand description

Expands to provide a default value for various data types.

The macro accepts a type identifier—Str, Int, Bool, Float, ListStr, or ListInt—and emits a corresponding default value: an empty string, integer zero as a 64-bit signed integer, a boolean false, a float wrapped in the project’s F64 utility, a reference to an empty slice of string slices, or an empty array of integers, respectively. This aids in initializing variables with predetermined standard values across different types within the synthesis framework.