macro_rules! u16cstr {
($expression:expr) => { ... };
}
Expand description
A macro for creating c-style u16 wide strings at compile time.
ยงExample
use u16cstr::u16cstr;
use widestring::{U16CString, U16CStr};
const wide_c_string: &U16CStr = u16cstr!("Test");
assert_eq!(wide_c_string, U16CString::from_str("Test").unwrap().as_ucstr());