mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-23 20:51:31 +11:00
rom: Make rom_funcs functions call function instead of returning it
This commit is contained in:
parent
1744151025
commit
1848789ca3
|
@ -35,8 +35,9 @@ macro_rules! rom_funcs {
|
||||||
) => {
|
) => {
|
||||||
$(
|
$(
|
||||||
$(#[$outer])*
|
$(#[$outer])*
|
||||||
pub fn $name() -> extern "C" fn( $( $aname : $aty ),* ) -> $ret {
|
pub fn $name($( $aname:$aty ),*) -> $ret{
|
||||||
rom_table_lookup(FUNC_TABLE, *$c)
|
let func: extern "C" fn( $( $aty ),* ) -> $ret = rom_table_lookup(FUNC_TABLE, *$c);
|
||||||
|
func($( $aname ),*)
|
||||||
}
|
}
|
||||||
)*
|
)*
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue