unifiy special handling of params and return

This commit is contained in:
Vinzenz Schroeter 2025-06-23 19:43:52 +02:00
parent 92ce27af68
commit e434130784
8 changed files with 82 additions and 66 deletions

View file

@ -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 >]);
}
};
}