rt 0.19.1

A real-time operating system capable of full preemption
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[macro_export]
macro_rules! ctor {
    ($name: ident, $fn: ident) => {
        #[cfg_attr(
            any(target_os = "none", target_os = "linux"),
            unsafe(link_section = ".init_array")
        )]
        #[cfg_attr(target_os = "macos", unsafe(link_section = "__DATA,__mod_init_func"))]
        #[used]
        static $name: extern "C" fn() = $fn;
    };
}