Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jun 12, 2024
1 parent 4663bd3 commit 378d5a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/builtin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ namespace jule
inline void out(const T &obj) noexcept
{
#ifdef OS_WINDOWS
const std::vector<jule::U16> utf16_str = jule::utf16_from_str(jule::to_str<T>(obj));
for (auto u: utf16_str)
std::cout << u << std::endl;
//const std::vector<jule::U16> utf16_str = jule::utf16_from_str(jule::to_str<T>(obj));
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
WriteConsoleW(handle, utf16_str.data(), utf16_str.size(), nullptr, nullptr);
//WriteConsoleW(handle, utf16_str.data(), utf16_str.size(), nullptr, nullptr);
WriteConsoleW(handle, &obj[0], obj.len(), nullptr, nullptr)
#else
std::cout << obj;
#endif
Expand Down

0 comments on commit 378d5a4

Please sign in to comment.