Skip to main content

Crate ax_ctor_bare_macros

Crate ax_ctor_bare_macros 

Source
Expand description

DO NOT use this crate directly. Use the ax-ctor-bare crate instead.

After attching the register_ctor macro to the given function, a pointer pointing to it will be stored in the .init_array section. When the program is loaded, this section will be linked into the binary. The call_ctors function in the ax-ctor-bare crate will call all the constructor functions in the .init_array section.

See the documentation of the ax-ctor-bare crate for more details.

Attribute Macrosยง

register_ctor
Register a constructor function to be called before main.