container macro code dedup
This commit is contained in:
parent
5ecb84ed16
commit
b4730ffdf3
11 changed files with 148 additions and 222 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue