eager_init

Macro eager_init 

Source
macro_rules! eager_init {
    ($body:block) => { ... };
}
Expand description

Run $body during process start-up using ctor.

The macro expands to a ctor hook so eager TLS initializers can register their work before any canister lifecycle hooks execute. Prefer wrapping the body in a separate function for larger initializers to keep the hook simple.