Module kernel::utilities::static_init
source · Expand description
Support for statically initializing objects in memory.
Functions§
- An
#[inline(never)]
function that panics internally if the passed reference istrue
. This function is intended for use within thestatic_buf!()
macro, which removes the size bloat of track_caller saving the location of every single call tostatic_init!()
. If you hit this panic, you are either callingstatic_buf!()
in a loop or calling a function multiple times which internally contains a call tostatic_buf!()
. Typically, calls tostatic_buf!()
are hidden within calls tostatic_init!()
or component helper macros, so start your search there.