rust/hedgewars-network-protocol/src/messages.rs
changeset 15830 ea459da15b30
parent 15811 a855f32ab3ca
equal deleted inserted replaced
15829:d5e6c8c92d87 15830:ea459da15b30
   258     };
   258     };
   259 }
   259 }
   260 
   260 
   261 macro_rules! msg {
   261 macro_rules! msg {
   262     [$($part: expr),*] => {
   262     [$($part: expr),*] => {
   263         format!(concat!($(const_braces!($part)),*, "\n"), $($part),*);
   263         format!(concat!($(const_braces!($part)),*, "\n"), $($part),*)
   264     };
   264     };
   265 }
   265 }
   266 
   266 
   267 impl HwProtocolMessage {
   267 impl HwProtocolMessage {
   268     /** Converts the message to a raw `String`, which can be sent over the network.
   268     /** Converts the message to a raw `String`, which can be sent over the network.