MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / SetErrorStdOut

Method SetErrorStdOut

source/script.cpp:12731–12741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12729
12730
12731void Script::SetErrorStdOut(LPTSTR aParam)
12732{
12733 mErrorStdOutCP = Line::ConvertFileEncoding(aParam);
12734 // Seems best not to print errors to stderr if the encoding was invalid. Current behaviour
12735 // for an encoding of -1 would be to print only the ASCII characters and drop the rest, but
12736 // if our caller is expecting UTF-16, it won't be readable.
12737 mErrorStdOut = mErrorStdOutCP != -1;
12738 // If invalid, no error is shown here because this function might be called early, before
12739 // Line::sSourceFile[0] is given its value. Instead, errors appearing as dialogs should
12740 // be a sufficient clue that the /ErrorStdOut= value was invalid.
12741}
12742
12743void Script::PrintErrorStdOut(LPCTSTR aErrorText, int aLength, LPCTSTR aFile)
12744{

Callers 1

_tWinMainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected