Skip to content

Commit

Permalink
update API outln function
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Jun 12, 2024
1 parent 6b46f35 commit 0fdcd01
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/builtin.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ namespace jule
//const std::vector<jule::U16> utf16_str = jule::utf16_from_str(jule::to_str<T>(obj));
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
std::cout << handle << std::endl;
const wchar_t *data = L"çaça kuşu üşüştü";
WriteConsoleW(handle, data, wcslen(data), NULL, NULL);
const wchar_t data[] = L"çaça kuşu üşüştü";
DWORD bytesWritten;
std::cout << WriteConsoleW(handle, data, wcslen(data), &bytesWritten, NULL);
//WriteConsoleW(handle, utf16_str.data(), utf16_str.size(), NULL, NULL);
#else
std::cout << obj;
Expand Down

0 comments on commit 0fdcd01

Please sign in to comment.