mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 18:03:37 +08:00
Support widestring macro on non-literal strings
This enables usage in macros like L!(stringify!($snake_case_name)) in the upcoming AST port.
This commit is contained in:
parent
be89793669
commit
7ec27617ae
|
@ -14,7 +14,7 @@ pub use widestring::{Utf32Str as wstr, Utf32String as WString};
|
|||
/// The result is of type wstr.
|
||||
/// It is NOT nul-terminated.
|
||||
macro_rules! L {
|
||||
($string:literal) => {
|
||||
($string:expr) => {
|
||||
widestring::utf32str!($string)
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user