macro_rules! ph_ctor {
($name:ident, $ty: expr, $f:expr) => { ... };
}
Expand description
Definiation a constructer
This constructor will be called by polyhal when booting.
Please add #![feature(used_with_arg)]
at the top of your lib.rs
file.
ยงDemo
ph_ctor!(ctor_name, || {
// Ctor block
});