strn!() { /* proc-macro */ }Expand description
Create a Strn containing a null-terminated byte string that’s suitable for passing to Mynewt APIs.
strn!("network") expands to &Strn::new( b"network\0" ).
strn!(()) expands to &Strn::new( b"\0" ).
For macro calls like strn!( stringify!( value ) ), return &Strn::new( b"value\0" ).
For complex macro calls like strn!( $crate::parse!(@ json device_id) ), return the parameter as is.