container macro code dedup

This commit is contained in:
Vinzenz Schroeter 2025-06-22 12:52:53 +02:00
parent 5ecb84ed16
commit b4730ffdf3
11 changed files with 148 additions and 222 deletions

View file

@ -83,8 +83,8 @@ macro_rules! derive_command_into_packet {
macro_rules! wrap_command {
($command:ident, $object_type:ident) => {
$crate::macros::wrap_clone!($object_type);
$crate::macros::wrap_free!($object_type);
$crate::macros::derive_clone!($object_type);
$crate::macros::derive_free!($object_type);
$crate::commands::derive_command_from!($command);
$crate::commands::derive_command_into_packet!($object_type);
};