mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 00:31:13 -03: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:
@@ -14,7 +14,7 @@
|
|||||||
/// The result is of type wstr.
|
/// The result is of type wstr.
|
||||||
/// It is NOT nul-terminated.
|
/// It is NOT nul-terminated.
|
||||||
macro_rules! L {
|
macro_rules! L {
|
||||||
($string:literal) => {
|
($string:expr) => {
|
||||||
widestring::utf32str!($string)
|
widestring::utf32str!($string)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user