mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 14:01:15 -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.
|
||||
/// It is NOT nul-terminated.
|
||||
macro_rules! L {
|
||||
($string:literal) => {
|
||||
($string:expr) => {
|
||||
widestring::utf32str!($string)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user