Skip to main content

saf_log_module

Macro saf_log_module 

Source
macro_rules! saf_log_module {
    ($($module:ident { $($phase:ident),* $(,)? }),* $(,)?) => { ... };
}
Expand description

Declares SAF log modules and their phases for compile-time validation.

Each module/phase pair becomes a unit struct in a hidden __saf_log_registry module. The saf_log! macro references these structs so that invalid module::phase combinations produce compile errors.