AK: Allow printing wide characters using %ls modifier

This commit is contained in:
safarp 2022-03-20 09:53:52 +01:00 committed by Ali Mohammad Pur
commit 704e1d13f4
Notes: sideshowbarker 2024-07-17 16:30:18 +09:00
4 changed files with 84 additions and 2 deletions

View file

@ -118,6 +118,17 @@ struct ArgvNextArgument<const char*, V> {
}
};
template<typename V>
struct ArgvNextArgument<const wchar_t*, V> {
ALWAYS_INLINE const wchar_t* operator()(V arg) const
{
if (arg.argc == 0)
return L"";
return L"";
}
};
template<typename V>
struct ArgvNextArgument<int, V> {
ALWAYS_INLINE int operator()(V arg) const