MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_println_string

Function __hxcpp_println_string

src/hx/StdLibs.cpp:669–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669void __hxcpp_println_string(const String &inV)
670{
671#ifdef HX_WINDOWS
672 HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
673 DWORD mode;
674 if (GetConsoleMode(handle, &mode) && inV.isUTF16Encoded())
675 {
676 fflush(stdout);
677 WriteConsoleAllW(handle, inV.__WCStr(), inV.length);
678 fwrite("\n", 1, 1, stdout);
679 fflush(stdout);
680 return;
681 }
682#endif
683 hx::strbuf convertBuf;
684 PRINTF("%s\n", inV.out_str(&convertBuf));
685 fflush(stdout);
686}
687
688
689// --- Casting/Converting ---------------------------------------------------------

Callers 1

__hxcpp_printlnFunction · 0.85

Calls 1

WriteConsoleAllWFunction · 0.85

Tested by

no test coverage detected