unifiy special handling of params and return
This commit is contained in:
parent
92ce27af68
commit
e434130784
8 changed files with 82 additions and 66 deletions
|
@ -67,7 +67,7 @@ macro_rules! derive_command_from {
|
|||
macro_rules! derive_command_into_packet {
|
||||
($command_type:ident) => {
|
||||
::paste::paste! {
|
||||
wrap_functions!(associate $command_type;
|
||||
$crate::macros::wrap_functions!(associate $command_type;
|
||||
#[doc = "Tries to turn a [`" $command_type "`] into a [Packet]."]
|
||||
///
|
||||
/// Returns: NULL or a [Packet] containing the command.
|
||||
|
@ -90,7 +90,7 @@ macro_rules! wrap_command {
|
|||
};
|
||||
($command:ident) => {
|
||||
::paste::paste! {
|
||||
wrap_command!($command, [< $command Command >]);
|
||||
$crate::commands::wrap_command!($command, [< $command Command >]);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue